[Csnd] Cabbage Sampler concept
Date | 2014-03-10 20:57 |
From | Roger Kelly |
Subject | [Csnd] Cabbage Sampler concept |
I have created a nice sampler experiment with Cabbage. The below snippet functions as a mapping from midi key to sample to play. I am wanting to find some way to have a single Cabbage instrument VST installed and swap out the "sample" map portion of the csd.
Anyone have any ideas on how to go about doing this? Basically something that functions similar to the way NI Kontatk works. You could have a list of instruments that you could select from. if (p4 == cpsmidinn( 60 )) then asig, asig diskin2 "C:/temp/60_v1_C3_C31.wav", 1
endif if (p4 == cpsmidinn( 62 )) then asig, asig diskin2 "C:/temp/62_v1_D3_D31.wav", 1
endif if (p4 == cpsmidinn( 64 )) then asig, asig diskin2 "C:/temp/64_v1_E3_E31.wav", 1
endif |
Date | 2014-03-10 21:05 |
From | Rory Walsh |
Subject | Re: [Csnd] Cabbage Sampler concept |
Hi Roger. How about this as a basic example(see below). You can simply load the samples into function tables, and then map the midi key to the function table? Is that what you mean? I'm happy to discuss Cabbage questions here, but feel free to sign up to the Cabbage forum and post there too if you like: www.thecabbagefoundation.org<Cabbage> form size(398, 155), caption("Simple Drums"), pluginID("plu1") keyboard bounds(21, 12, 360, 100) </Cabbage> <CsoundSynthesizer> <CsOptions> -n -d -+rtmidi=NULL -M0 --midi-key=4 --midi-velocity-amp=5 -m0d </CsOptions> <CsInstruments> sr = 44100 ksmps = 64 nchnls = 2 0dbfs = 1 ;triggering samples... instr 1 event_i "i", 99, 0, .25, p4 endin ;sampler instrument instr 99 iTable = p4 On 10 March 2014 20:57, Roger Kelly <loraxman@gmail.com> wrote:
|
Date | 2014-03-10 21:17 |
From | Roger Kelly |
Subject | Re: [Csnd] Cabbage Sampler concept |
I think this is really close to what I want to do. I would want to be able to swap the score with the table maps at runtime from Cabbage GUI. Do you think that would be possible? Instr1 => Guitar (loads score for guitar map)
Instr2 => Piano (laods score for piano map) etc. On Mon, Mar 10, 2014 at 4:05 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2014-03-10 21:24 |
From | Rory Walsh |
Subject | Re: [Csnd] Cabbage Sampler concept |
you could offset the table numbers so each instrument maps to a unique set of samples? On 10 March 2014 21:17, Roger Kelly <loraxman+csound@gmail.com> wrote:
|
Date | 2014-03-11 13:53 |
From | Roger Kelly |
Subject | Re: [Csnd] Cabbage Sampler concept |
I think that would work. How many tables can csound support? On Mon, Mar 10, 2014 at 4:24 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2014-03-11 14:21 |
From | Rory Walsh |
Subject | Re: [Csnd] Cabbage Sampler concept |
I'm not sure there is an actual limit on the number of ftables supported, the only problem you might run into is with physical memory. But in my sampler instruments I've used up to 80 or so samples without any problems.
On 11 March 2014 13:53, Roger Kelly <loraxman@gmail.com> wrote:
|
Date | 2014-03-11 14:42 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: |
Attachments | None |
Date | 2014-03-11 15:36 |
From | Roger Kelly |
Subject | Re: [Csnd] Cabbage Sampler concept |
I also was just looking at using the fluid opcodes to make a soundfont player. Have you tried these with Cabbage? It crashes when I try the examples, but I might be on an older Cabbage version. On Tue, Mar 11, 2014 at 9:21 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2014-03-11 16:21 |
From | Rory Walsh |
Subject | Re: [Csnd] Cabbage Sampler concept |
If you're on windows then the problem is that I haven't included those opcodes in my Csound build. I can have a look at building them so I can include them in the next release. Python and the OSC opcodes are there so I think the fluid synth stuff is probably the last package I need to build myself. But in the last version the fluid opcodes worked fine so I don't foresee any issues with this version. On 11 March 2014 15:36, Roger Kelly <loraxman+csound@gmail.com> wrote:
|
Date | 2014-03-11 16:25 |
From | Dominic Melville |
Subject | Re: [Csnd] Cabbage Sampler concept |
Rory, If it's not too cheeky could you post up a .csd or some code for one of your sampler instruments? Always curious how others implement certain opcodes, in particular ones that use ftables and audio files.
Thanks Dominic
On Tuesday, March 11, 2014, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2014-03-11 16:26 |
From | Roger Kelly |
Subject | Re: [Csnd] Cabbage Sampler concept |
Yes that is the case! I am on wnidows. Thanks much. I would really like to use them. Are these also available on Mac? On Tue, Mar 11, 2014 at 11:21 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2014-03-11 16:29 |
From | Rory Walsh |
Subject | Re: [Csnd] Cabbage Sampler concept |
I think they should be there on OSX already but I'll need to check. I'll try to put together a simple sampler and post it to the Cabbage forums.
On 11 March 2014 16:26, Roger Kelly <loraxman@gmail.com> wrote:
|
Date | 2014-03-11 17:51 |
From | Dominic Melville |
Subject | Re: [Csnd] Cabbage Sampler concept |
The fluid opcodes are in the standard OS X installer as far as I know, I built my Csound myself and included them so I'm not 100% on that, but I'm pretty sure they are. It's not hard to build Csound yourself on OS X and include whatever extras you want. Check the instructions in the repo. And Rory, I'll keep an eye on the cabbage forums for the sampler. Cheers for that, interested to see how you use the opcodes. I've not been using Cabbage itself long, but very impressed so far. Gonna use it for making various things for my live setup. Great work!
Thanks Dominic
On Tuesday, March 11, 2014, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2014-03-11 17:56 |
From | Rory Walsh |
Subject | Re: [Csnd] Cabbage Sampler concept |
Actually, I've never used the fluid opcodes! I use plugin old samples loaded into function tables. Maybe not so interesting :( On 11 March 2014 17:51, Dominic Melville <dcamelville@gmail.com> wrote: The fluid opcodes are in the standard OS X installer as far as I know, I built my Csound myself and included them so I'm not 100% on that, but I'm pretty sure they are. It's not hard to build Csound yourself on OS X and include whatever extras you want. Check the instructions in the repo. |
Date | 2014-03-12 01:01 |
From | Dominic Melville |
Subject | Re: [Csnd] Cabbage Sampler concept |
Simplicity is often more interesting and for live use often the wiser move ;) On Tuesday, March 11, 2014, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2014-03-12 14:43 |
From | Roger Kelly |
Subject | Re: [Csnd] Cabbage Sampler concept |
Btw, I tried it with the 'old' sf opcodes. Works great!.
Rory, Do you know when the new build for Windows would have the fluid codes included? On Tue, Mar 11, 2014 at 8:01 PM, Dominic Melville <dcamelville@gmail.com> wrote: Simplicity is often more interesting and for live use often the wiser move ;) |
Date | 2014-03-12 14:46 |
From | Rory Walsh |
Subject | Re: [Csnd] Cabbage Sampler concept |
I'll take a look later on and let you know how it goes. On 12 March 2014 14:43, Roger Kelly <loraxman@gmail.com> wrote:
|
Date | 2014-03-12 16:16 |
From | Rory Walsh |
Subject | Re: [Csnd] Cabbage Sampler concept |
That didn't go so well :( Hit problems almost immediately. Hopefully someone on the dev list can help me. On 12 March 2014 14:46, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2014-03-12 18:45 |
From | Roger Kelly |
Subject | Re: [Csnd] Cabbage Sampler concept |
I also tested out sfinstr3 with a Cabbage instrument. It does velocities correctly in the Soundfont. This was my primary functionality I needed from a soundfont engine in Csound. I think I can do what I am wanting with the "old" sf opcodes. I think I can wait on fluid opcodes. Thanks for having a go at it!
On Wed, Mar 12, 2014 at 11:16 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2014-03-12 19:13 |
From | Michael Gogins |
Subject | Re: [Csnd] Cabbage Sampler concept |
Rory, why don't you simply build Cabbage for Windows using the Csound from the Windows installer? It includes the required header files as well as the fluidsynth opcodes. You could also use the installer on my personal Web site, https://www.dropbox.com/s/ol31bz7b6pb9ybq/Setup_Csound6_6.02.0-vst.exe, which additionally includes CsoundVST and the vst4cs opcodes. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Mar 12, 2014 at 2:45 PM, Roger Kelly <loraxman+csound@gmail.com> wrote:
|
Date | 2014-03-12 19:23 |
From | Rory Walsh |
Subject | Re: [Csnd] Cabbage Sampler concept |
I'll give it another go and see how I get on. I remember having some difficulties the last time. One advantage of using my own is that I've been able to give Cabbage users access to devel snapshots of Csound. I've had to rebuild Csound more than a handful of times since the last release. I think we are over the worst now, and Victor has been doing trojan work to get me this far. I'll try out your installer and hopefully it will work. It sure would save hassle and be perfect for stable releases. On 12 March 2014 19:13, Michael Gogins <michael.gogins@gmail.com> wrote:
|