Csound Csound-dev Csound-tekno Search About

[Csnd] Simple implementation of sync audio clip switcher (like in Ableton)

Date2019-01-01 20:51
FromAnton Kholomiov
Subject[Csnd] Simple implementation of sync audio clip switcher (like in Ableton)
Hi!

I'd like to share the code for simple synchronized audio clip launcher.
It can be thought of as single row in the Ableton clip launcher.

It's a single opcode that simulates the row of clips.
To simulate the matrix of clips we can play several rows at the same time
with same sync parameters.

Here is the code with the demo:

https://github.com/anton-k/pure-csound/tree/master/event/live-row

In the demo there is a simple kick + snare + percussion with various
clips that can be switched with keyboard keypress.

To run the demo we can download the source from repo and run

> csound -odac LiveExample.csd

Cheers,
Anton

---------------------------------------------------------------------------
-- docs (also can be found in the UDO source)

How to use the opcode:

```
; UDO to play row of toggle clip like in Ableton Live
;
; Stere version of liveRow. Toggle of stereo-audio clips syncronised with BPM.
;
; > aOut liveRow iTabSize, iLeftTabs, iRightTabs, iBpm, iBeatDur, kUserIndex, iAuxParams
;
; * iTabSize - how many audio clips in the row
; * iLeftTabs, iRightTabs - tables that contains indices to left and right channels
;
;   of tables with monophonic audio clips (loaded with GEN01). Supposed that we load specific channels with GEN01.
; * iBpm - BPM of the track
; * iBeatDur - duration of the bar relative to quaters. So 4 - means 4/4, 3 means 3/4, 3.5  means 7/8 etc.
; * kUserIndex - index of the played clip, if it's out of bounds silence is played back.
```


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-02-24 14:21
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] Simple implementation of sync audio clip switcher (like in Ableton)
Anton,

Love it !!!  

I will share with my Berklee students in this week's Csound class.  They are all Live users. And I can guarantee that they will love it too.

Thanks for writing and sharing.

-dB
_____________________________________________
Dr. Richard Boulanger
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
______________________________________________
OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
______________________________________________


On Tue, Jan 1, 2019 at 3:51 PM Anton Kholomiov <anton.kholomiov@gmail.com> wrote:
Hi!

I'd like to share the code for simple synchronized audio clip launcher.
It can be thought of as single row in the Ableton clip launcher.

It's a single opcode that simulates the row of clips.
To simulate the matrix of clips we can play several rows at the same time
with same sync parameters.

Here is the code with the demo:

https://github.com/anton-k/pure-csound/tree/master/event/live-row

In the demo there is a simple kick + snare + percussion with various
clips that can be switched with keyboard keypress.

To run the demo we can download the source from repo and run

> csound -odac LiveExample.csd

Cheers,
Anton

---------------------------------------------------------------------------
-- docs (also can be found in the UDO source)

How to use the opcode:

```
; UDO to play row of toggle clip like in Ableton Live
;
; Stere version of liveRow. Toggle of stereo-audio clips syncronised with BPM.
;
; > aOut liveRow iTabSize, iLeftTabs, iRightTabs, iBpm, iBeatDur, kUserIndex, iAuxParams
;
; * iTabSize - how many audio clips in the row
; * iLeftTabs, iRightTabs - tables that contains indices to left and right channels
;
;   of tables with monophonic audio clips (loaded with GEN01). Supposed that we load specific channels with GEN01.
; * iBpm - BPM of the track
; * iBeatDur - duration of the bar relative to quaters. So 4 - means 4/4, 3 means 3/4, 3.5  means 7/8 etc.
; * kUserIndex - index of the played clip, if it's out of bounds silence is played back.
```


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here