[Csnd] UDOs for csound live
Date | 2010-11-29 13:01 |
From | joachim heintz |
Subject | [Csnd] UDOs for csound live |
i have uploaded to the UDO data base several opcodes for using csound in live situations like record / play buffers and key interaction: 1. RECORD IN A BUFFER (FUNCTION TABLE) BufRec records in a buffer (function table), with optional start point, end point, and wrap (loop record). There are versions for mono and stereo, but it can be easily extended for multichannel recording: http://www.csounds.com/udo/displayOpcode.php?opcode_id=135 http://www.csounds.com/udo/displayOpcode.php?opcode_id=146 2. PLAY FROM A BUFFER (FUNCTION TABLE) a) ANY BUFFER EXCEPT GEN01 GENERATED BufPlay plays from a buffer (function table), with control over speed (forward - backward), volume, start point, end point, and different options of wrapping/looping. All parameters can be modified during performance. Versions exist for mono and stereo; it's easy to extend this to any number of channels: http://www.csounds.com/udo/displayOpcode.php?opcode_id=136 http://www.csounds.com/udo/displayOpcode.php?opcode_id=143 b) PLAY SOUNDFILES FROM GEN01 GENERATED TABLES BufFiPl plays a soundfile from a GEN01 function table, including sample rate conversion. The input parameters are similar to diskin (speed, loop play or play once, skiptime) plus a factor for amplitude scaling. There are versions for 1, 2, 4, and 8 channels: http://www.csounds.com/udo/displayOpcode.php?opcode_id=83 http://www.csounds.com/udo/displayOpcode.php?opcode_id=84 http://www.csounds.com/udo/displayOpcode.php?opcode_id=87 http://www.csounds.com/udo/displayOpcode.php?opcode_id=88 3. SIMPLIFY CREATING BUFFERS (FUNCTION TABLES) a) FOR RECORDING BufCt creates a function table of ilen seconds for recording by just giving the ilen argument. Versions are for mono and stereo recording; it is easy to extend for more than two channels: http://www.csounds.com/udo/displayOpcode.php?opcode_id=137 http://www.csounds.com/udo/displayOpcode.php?opcode_id=144 b) FOR CREATING GEN01 TABLES FROM SOUNDFILES http://www.csounds.com/udo/displayOpcode.php?opcode_id=83 (mono file) http://www.csounds.com/udo/displayOpcode.php?opcode_id=142 (stereo file) http://www.csounds.com/udo/displayOpcode.php?opcode_id=141 (four channel file) http://www.csounds.com/udo/displayOpcode.php?opcode_id=140 (eight channel file) c) FOR CREATING NON-DEFERRED TABLES FROM SOUNDFILES http://www.csounds.com/udo/displayOpcode.php?opcode_id=138 http://www.csounds.com/udo/displayOpcode.php?opcode_id=145 4. INTERACTION WITH COMPUTER KEYBOARD a) KeyOnce returns '1' once in the k-cycle a certain key has been pressed or released. It is similar to the Max or PD objects Key / Keyup: http://www.csounds.com/udo/displayOpcode.php?opcode_id=133 b) KeyStay returns '1' as long as a certain key is hold: http://www.csounds.com/udo/displayOpcode.php?opcode_id=134 let me know if you find any problems. best - joachim Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-12-04 10:16 |
From | Enrico Francioni |
Subject | [Csnd] Re: UDOs for csound live |
Hi joachim-3 I see only now this post. I also had written a .csd (in MacCsound) for live recording, importing wav files, and play in multitrack. Can I ask you to have my job to know what you think? Thanks, Best regards enrico |
Date | 2010-12-04 10:31 |
From | joachim heintz |
Subject | [Csnd] Re: Re: UDOs for csound live |
sure! let's put our work together and write a new UDO, or two for different approaches. joachim Am 04.12.2010 um 11:16 schrieb Enrico Francioni: > > > Hi joachim-3 > > I see only now this post. > I also had written a .csd (in MacCsound) for live recording, > importing wav > files, and play in multitrack. > Can I ask you to have my job to know what you think? > > Thanks, > Best regards > > enrico > -- > View this message in context: http://csound.1045644.n5.nabble.com/UDOs-for-csound-live-tp3284357p3292010.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > > Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-12-04 11:24 |
From | Enrico Francioni |
Subject | [Csnd] Re: Re: UDOs for csound live |
Ok joachim-3 ... My approach is limited for now to only two tracks, but may be extended seamlessly to an indefinite number of tracks. In my version I have not used "opcode" - as joachim-3 - and I did not use tables. For the first time it's necessary to always have in my file and file_01.wav file_02.wav (etc ...). in summary: • Dragge audio files to import the file into the window of the GUI MacCsound; • record in mono or stereo; • Listen to the track to play choosing, or all the tracks together; • also appear in the GUI controls that are similar to an "editor" (eg Audacity!). As I said above the project - as is anything that is at the beginning - can be developed and improved ... e http://csound.1045644.n5.nabble.com/file/n3292048/Rec%26Play.csd Rec%26Play.csd -- View this message in context: http://csound.1045644.n5.nabble.com/UDOs-for-csound-live-tp3284357p3292048.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-12-04 11:27 |
From | Enrico Francioni |
Subject | [Csnd] Re: Re: UDOs for csound live |
hops …my example has the comments in italian… ;-) e -- View this message in context: http://csound.1045644.n5.nabble.com/UDOs-for-csound-live-tp3284357p3292049.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-12-04 11:48 |
From | joachim heintz |
Subject | [Csnd] Re: Re: Re: UDOs for csound live |
looks nice! i don't have MacCsound installed, but it's still possible to see it in QuteCsound. just drag and drop is not possible. as far as i understood it's working, right? or are you not happy with anything? j Am 04.12.2010 um 12:24 schrieb Enrico Francioni: > > > > Ok joachim-3 > > ... My approach is limited for now to only two tracks, but may be > extended > seamlessly to an indefinite number of tracks. > In my version I have not used "opcode" - as joachim-3 - and I did > not use > tables. > > For the first time it's necessary to always have in my file and > file_01.wav > file_02.wav (etc ...). > > in summary: > • Dragge audio files to import the file into the window of the GUI > MacCsound; > • record in mono or stereo; > • Listen to the track to play choosing, or all the tracks together; > • also appear in the GUI controls that are similar to an "editor" (eg > Audacity!). > > As I said above the project - as is anything that is at the > beginning - can > be developed and improved ... > > e > http://csound.1045644.n5.nabble.com/file/n3292048/Rec%26Play.csd > Rec%26Play.csd > > -- > View this message in context: http://csound.1045644.n5.nabble.com/UDOs-for-csound-live-tp3284357p3292048.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > > Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-12-04 13:12 |
From | Enrico Francioni |
Subject | [Csnd] Re: Re: Re: UDOs for csound live |
yes the algorithm works. Now I would like to improve it and add things. Yes you tried to open it with Qute? Does it work? e p.s. I attach an image I / O http://csound.1045644.n5.nabble.com/file/n3292098/RecPlay.png |
Date | 2010-12-04 13:29 |
From | joachim heintz |
Subject | [Csnd] Re: Re: Re: Re: UDOs for csound live |
as i said, drag-and-drop does not work in qcs. if you decide it should work not just for maccsound, you should add another way of giving the input file path. Am 04.12.2010 um 14:12 schrieb Enrico Francioni: > > > yes > the algorithm works. > Now I would like to improve it and add things. > > Yes > you tried to open it with Qute? > Does it work? > > e > > > p.s. > I attach an image I / O > http://csound.1045644.n5.nabble.com/file/n3292098/RecPlay.png > > -- > View this message in context: http://csound.1045644.n5.nabble.com/UDOs-for-csound-live-tp3284357p3292098.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > > Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-12-04 13:34 |
From | Enrico Francioni |
Subject | [Csnd] Re: Re: Re: Re: UDOs for csound live |
…is very strange that qute not allowing the drag; what advice to give the file path in qute? e -- View this message in context: http://csound.1045644.n5.nabble.com/UDOs-for-csound-live-tp3284357p3292139.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-12-04 13:52 |
From | joachim heintz |
Subject | [Csnd] Re: Re: Re: Re: Re: UDOs for csound live |
i think it is not very strange. many things are fairly easy to realize when you just work for one operation system, but complicated when you want to be cross-platform. qcs uses a choose-file-dialog which is activated by a reserved channel. you can find examples in the qcs example menu: Widgets -> Reserved Channels. Am 04.12.2010 um 14:34 schrieb Enrico Francioni: > > > …is very strange that qute not allowing the drag; > what advice to give the file path in qute? > > e > -- > View this message in context: http://csound.1045644.n5.nabble.com/UDOs-for-csound-live-tp3284357p3292139.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > > Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-12-04 18:25 |
From | Enrico Francioni |
Subject | [Csnd] Re: Re: Re: Re: Re: UDOs for csound live |
...maybe Andrés can "enlighten"? e -- View this message in context: http://csound.1045644.n5.nabble.com/UDOs-for-csound-live-tp3284357p3292366.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-12-04 20:25 |
From | Andres Cabrera |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: UDOs for csound live |
Hi, I can't, unfortunately... as Joachim mentions, it's something related to cross-platformness, as the drag and drop does work on Linux. I've looked into this, but can't find the answer as to why it doesn't work on OS X, it's certainly not a deliberate limitation I've introduced... Cheers, Andres On Sat, Dec 4, 2010 at 6:25 PM, Enrico Francioni |
Date | 2010-12-04 21:16 |
From | Enrico Francioni |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: UDOs for csound live |
…excuse my ignorance Andrés, but why does the dredging up MacCsound? ? e -- View this message in context: http://csound.1045644.n5.nabble.com/UDOs-for-csound-live-tp3284357p3292487.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-12-04 21:43 |
From | Andres Cabrera |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: UDOs for csound live |
Hi Enrico, What do you mean? Cheers, Andres On Sat, Dec 4, 2010 at 9:16 PM, Enrico Francioni |
Date | 2010-12-04 21:53 |
From | Enrico Francioni |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: UDOs for csound live |
I can not understand why in MacCsound you can drag the file in i/o whereas in Qute you can not drag the file in i/o, e |
Date | 2010-12-05 09:12 |
From | Andres Cabrera |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: UDOs for csound live |
Hi Enrico, I don't really know either... It has to do with the way Qt uses drag and drop, which according to Qt's documentation should work, but it doesn't on the Mac. So as I said it's not an artificial restriction I added, and it's not something that is easily fixed, as I have tried several workarounds without success... But like Joachim said, one alternative for QuteCsound is to use the "_Browse" reserved channels which will open a file browser where you can select your file. Cheers, Andres On Sat, Dec 4, 2010 at 9:53 PM, Enrico Francioni |
Date | 2010-12-05 10:20 |
From | Enrico Francioni |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: UDOs for csound live |
ok Andrés, now I understand thanks e -- View this message in context: http://csound.1045644.n5.nabble.com/UDOs-for-csound-live-tp3284357p3292823.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |