[Csnd] fluidProgramSelect
Date | 2011-01-24 20:38 |
From | menno |
Subject | [Csnd] fluidProgramSelect |
Hi, i would like to know if it is possible to use fluidProgramSelect inside an instrument and use it as a Program Change, so i can choose - within the same instrument - another preset. Right now i get chaotic behaviour with the sounds of all kinds of presets when i play the virtual keyboard. I also tried with sending a program change with 0 key and 0 velocity just to be sure the next real note would have the new preset. Or is fluidProgramSelect designed to stay in instr 0 and to be set once? Here is my csd, i use the GMbank that comes with Csound in the samples folder: |
Date | 2011-01-24 20:45 |
From | Michael Gogins |
Subject | Re: [Csnd] fluidProgramSelect |
I'm not sure about that. Check the docs at http://fluidsynth.sourceforge.net/api/ for more information. I will also take a look at the opcode code. Regards, Mike On Mon, Jan 24, 2011 at 3:38 PM, menno |
Date | 2011-01-24 21:08 |
From | menno |
Subject | [Csnd] Re: fluidProgramSelect |
i will check the link, thank you. There is another example (under fluidEngine, fluid-2.orc) that uses 2 presets of one and the same Soundfont bank, but it is divided between instr 1 and instr 3. When i adapt this example to use one GMbank for all the 3 presets and thus the 3 instruments it works well. But i will check the docs of fluidsynth too. Here is the csd with 3 presets and 3 instruments - it plays a midifile found in manual/examples: |
Date | 2011-01-24 21:27 |
From | menno |
Subject | [Csnd] Re: fluidProgramSelect |
It should be possible according to the docs of fluidsynth: Once the synthesizer is up and running and a SoundFont is loaded, most people will want to do something useful with it. Make noise, for example. MIDI messages can be sent using the fluid_synth_noteon(), fluid_synth_noteoff(), fluid_synth_cc(), fluid_synth_pitch_bend(), fluid_synth_pitch_wheel_sens(), and fluid_synth_program_change() functions. For convenience, there's also a fluid_synth_bank_select() function (the bank select message is normally sent using a control change message). I will get the manual of my Yamaha V50 and try to find out if it can be done by a control change message too. Then i could use fluidCC or fluidControl to do it... thanks, menno |
Date | 2011-01-30 06:34 |
From | Patrick |
Subject | [Csnd] Cecilia Problem Ubuntu 10.04 |
hello i am having an issue with running Cecilia on linux ubuntu error: -+rtmidi='PortMidi': unknown module *** error opening MIDI in device: -1 (Unknown MIDI error) Traceback (most recent call last): File "/home/shree/Downloads/Cecilia_4.1_beta-src/Resources/Widgets.py", line 4225, in MouseUp self.outPlayFunction(self.playing) File "/home/shree/Downloads/Cecilia_4.1_beta-src/Resources/Control.py", line 688, in onPlayStop CeciliaLib.startCeciliaSound() File "/home/shree/Downloads/Cecilia_4.1_beta-src/Resources/CeciliaLib.py", line 2354, in startCeciliaSound start(flagsLine) File "/home/shree/Downloads/Cecilia_4.1_beta-src/Resources/CeciliaLib.py", line 2343, in start csound.startCsound(csdPath) File "/home/shree/Downloads/Cecilia_4.1_beta-src/Resources/CsoundLib.py", line 211, in startCsound self.AnalyseLogFile(csnd.csoundCfgErrorCodeToString(res)) File "/home/shree/Downloads/Cecilia_4.1_beta-src/Resources/CsoundLib.py", line 141, in AnalyseLogFile for i, line in enumerate(self.loglines): TypeError: Exception in callback Seems like she does not like PortMidi pp 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 | 2011-01-30 08:13 |
From | Rene Jopi |
Subject | Re: [Csnd] Cecilia Problem Ubuntu 10.04 |
Hi, Is your Csound compiled with the portmidi support? Is pyaudio installed? I solve it by adding my own configuration line in the file CeciliaLib.py
I add at line 555: flags = '-dm0 --old-parser -iadc -odac -b1024 -B2048 -+rtaudio=alsa -+rtmidi=alsa -Ma' It is not nice but no more problem !!! Cheers,
René 2011/1/30 Patrick <bigswift@ufl.edu> hello |
Date | 2011-01-30 16:51 |
From | Patrick |
Subject | Re: [Csnd] Cecilia Problem Ubuntu 10.04 |
apparently i did not compile with portMidi? as i am still receiving the same error this is again making using the new Cecilia overly difficult for non-techie students of mine [except for those lucky enough to have a macbook] let me recompile Csound again and share what i get pat pagano UF|digital worlds complainer On 01/30/2011 03:13 AM, Rene Jopi wrote:
|
Date | 2011-01-30 17:08 |
From | Patrick |
Subject | Re: [Csnd] Cecilia Problem Ubuntu 10.04 |
okay apparently i DID NOT compile with PortMIDI=1 so now i get The available MIDI in devices are: 0: Midi Through Port-0 (ALSA) 1: Audigy MPU-401 (UART) (ALSA) 2: Audigy MPU-401 #2 (ALSA) 3: nanoKONTROL MIDI 1 (ALSA) 4: Photon 25 MIDI 1 (ALSA) 5: Photon 25 MIDI 2 (ALSA) PortMIDI: Activated input device 0: 'Midi Through Port-0' (ALSA) orch now loaded audio buffered in 1024 sample-frame blocks The available JACK output devices are: *** rtjack: must specify a device name, not a number Traceback (most recent call last): File "/home/shree/Downloads/Cecilia_4.1_beta-src/Resources/Widgets.py", line 4225, in MouseUp self.outPlayFunction(self.playing) File "/home/shree/Downloads/Cecilia_4.1_beta-src/Resources/Control.py", line 688, in onPlayStop CeciliaLib.startCeciliaSound() File "/home/shree/Downloads/Cecilia_4.1_beta-src/Resources/CeciliaLib.py", line 2354, in startCeciliaSound start(flagsLine) File "/home/shree/Downloads/Cecilia_4.1_beta-src/Resources/CeciliaLib.py", line 2343, in start csound.startCsound(csdPath) File "/home/shree/Downloads/Cecilia_4.1_beta-src/Resources/CsoundLib.py", line 211, in startCsound self.AnalyseLogFile(csnd.csoundCfgErrorCodeToString(res)) File "/home/shree/Downloads/Cecilia_4.1_beta-src/Resources/CsoundLib.py", line 141, in AnalyseLogFile for i, line in enumerate(self.loglines): TypeError: Exception in callback Can anyone help me with this? I would really love to demo new Cecilia/Csound5.12 for a sound design class on thursday of this coming week, so far only the mac version works out of the box and i have not even tried fixing this for Windows7 yet. Any suggestion will be appreciated and thanks so far Rene! On 01/30/2011 11:51 AM, Patrick wrote:
|
Date | 2011-01-30 17:57 |
From | Rene Jopi |
Subject | Re: [Csnd] Cecilia Problem Ubuntu 10.04 |
Hi, I gave up using Cecilia configuration menu for midi and audio. I bypass Cecilia setting with my line 555 when I am using alsa.
With jack, I use line 555: flags ='-dm0 -iadc:system:capture_ -odac:system:playback_ -+rtaudio=jack -b16 -B4096 -+rtmidi=alsa -Ma --old-parser'
Hope you will have a better answer :) René 2011/1/30 Patrick <bigswift@ufl.edu>
|
Date | 2011-01-30 18:01 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Cecilia Problem Ubuntu 10.04 |
What about setting .csoundrc ? On 30 Jan 2011, at 17:57, Rene Jopi wrote: Hi, |
Date | 2011-01-30 18:39 |
From | Patrick |
Subject | Re: [Csnd] Cecilia Problem Ubuntu 10.04 |
Victor, can you post me a good .csoundrc suggestion for RT audio using alsa? I have a soundblaster audigy i think in there when i am not using jack for ardour etc.. Rene, i will try the jack setting and see if that plays any sound. pp On 01/30/2011 01:01 PM, Victor Lazzarini wrote:
|
Date | 2011-01-30 18:46 |
From | Patrick |
Subject | Re: [Csnd] Cecilia Problem Ubuntu 10.04 |
On 01/30/2011 01:01 PM, Victor Lazzarini wrote:
|
Date | 2011-01-30 18:51 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Cecilia Problem Ubuntu 10.04 |
what I normally use is just -+rtaudio=alsa -+rtmidi=alsa -odac -iadc but of course it depends on what works in your system. What I would suggest is try the command-line, see what options work well and then place them in a .csoundrc Victor On 30 Jan 2011, at 18:39, Patrick wrote:
|
Date | 2011-01-30 20:20 |
From | Rene Jopi |
Subject | Re: [Csnd] Cecilia Problem Ubuntu 10.04 |
Hi, I have tested with a .csoundrc file, this don't work on my system. Cecilia still pass its flags on the Csound command line, and if I am not wrong, due to the order of precedence the Cecilia options override any other ones.
René 2011/1/30 Victor Lazzarini <Victor.Lazzarini@nuim.ie>
|
Date | 2011-01-30 22:33 |
From | Patrick |
Subject | Re: [Csnd] Cecilia Problem Ubuntu 10.04 |
does anyone have any settings in .csoundrc that are working well? the sound card is an Audigy2 btw. pp On 01/30/2011 03:20 PM, Rene Jopi wrote: Hi, |
Date | 2011-02-01 01:45 |
From | Jean Piché |
Subject | Re: [Csnd] Cecilia Problem Ubuntu 10.04 |
Hello Patrick, I am guessing you are using Cecilia 4.1b. We have just recently found a bug in text parsing for the MIDI interfaces. I am not certain this is related but it may be and it has been fixed in the release coming up next week. In the meantime can I ask you to fill an issue report here: http://code.google.com/p/cecilia4/issues/list THanks! jp On Sun, Jan 30, 2011 at 5:33 PM, Patrick <bigswift@ufl.edu> wrote:
-- _____________________________ http://jeanpiche.com |