Switching between instruments using Program Change messages
Switching between instruments using Program Change messages
Hi,
I'd like to know if I can create a GIG file with two different instruments and then use MIDI program change message to switch between the two.
For example, I have a rank of samples Pipes from a Pipe organ and two sets of recordings (one plain the other with tremulant). I need to use the same MIDI channel but switch between the two sample sets (instruments) on-the-fly. Is this possible?
Thanks,
GrahamG
I'd like to know if I can create a GIG file with two different instruments and then use MIDI program change message to switch between the two.
For example, I have a rank of samples Pipes from a Pipe organ and two sets of recordings (one plain the other with tremulant). I need to use the same MIDI channel but switch between the two sample sets (instruments) on-the-fly. Is this possible?
Thanks,
GrahamG
Re: Switching between instruments using Program Change messages
Yes it can be done. I am using the VSL libraries and this is how they have done it with their instruments. One .gig file will have many different articulations of that instrument in one file controlled by program change events.
You can use the event change editor in rosegarden to map change events in the matrix editor.
I am running VSL's Performance tool that does the program changes through a GUI mostly for me.
I hope that helps!
You can use the event change editor in rosegarden to map change events in the matrix editor.
I am running VSL's Performance tool that does the program changes through a GUI mostly for me.
I hope that helps!
- dahnielson
- Moderator
- Posts: 632
- Joined: Wed Jan 23, 2008 11:25 pm
- Location: Linköping / Tranås, Sweden
- Contact:
Re: Switching between instruments using Program Change messages
What you're looking for is a MIDI Instrument Map. Welcome to this überthread.
Anders Dahnielson
Ardour2, Qtractor, Linuxsampler, M-AUDIO Delta 1010, Axiom 61, Korg D12, AKAI S2000, E-MU Proteus 2k, Roland R-5, Roland HP 1300e, Zoom RFX-1000, 4GB RAM x86_64 Intel Pentium Dual 1.80GHz Gentoo Linux
Ardour2, Qtractor, Linuxsampler, M-AUDIO Delta 1010, Axiom 61, Korg D12, AKAI S2000, E-MU Proteus 2k, Roland R-5, Roland HP 1300e, Zoom RFX-1000, 4GB RAM x86_64 Intel Pentium Dual 1.80GHz Gentoo Linux
Re: Switching between instruments using Program Change messages
Hi Anders,
Thanks for the information. I'll get a chance to look at this sometime this week
GrahamG
Thanks for the information. I'll get a chance to look at this sometime this week
GrahamG
Re: Switching between instruments using Program Change messages
Hi,
I finally got a chance to try this out. I created a GIG with two instruments within. Created the 'chromatic' instrument map in qsampler. Set up Channel 1 with the GIG, preloading instrument 1 by default. Then I saved and reloaded just to make sure everything was in place. Sending the program change did change between the two instruments, BUT NOT 'on-the-fly', i.e. the notes that I was playing on instrument 1 went silent and instrument 2 only started playing when I played new notes. This is using the released version of Linuxsampler and Qsampler.
When using program change with soundfonts and fluidsynth I am able to send the program change and the notes that I am currently playing change to the new instrument. This is what I need to get Linuxsampler to do. Is there a different way to setup the instrument map? Would using Fantasia make a difference?
Any ideas welcome...
GrahamG
I finally got a chance to try this out. I created a GIG with two instruments within. Created the 'chromatic' instrument map in qsampler. Set up Channel 1 with the GIG, preloading instrument 1 by default. Then I saved and reloaded just to make sure everything was in place. Sending the program change did change between the two instruments, BUT NOT 'on-the-fly', i.e. the notes that I was playing on instrument 1 went silent and instrument 2 only started playing when I played new notes. This is using the released version of Linuxsampler and Qsampler.
When using program change with soundfonts and fluidsynth I am able to send the program change and the notes that I am currently playing change to the new instrument. This is what I need to get Linuxsampler to do. Is there a different way to setup the instrument map? Would using Fantasia make a difference?
Any ideas welcome...
GrahamG
- dahnielson
- Moderator
- Posts: 632
- Joined: Wed Jan 23, 2008 11:25 pm
- Location: Linköping / Tranås, Sweden
- Contact:
Re: Switching between instruments using Program Change messages
You need to set the correct load mode for that behavior. Instrument maps use "ON_DEMAND" by default. If you set it to "PERSISTENT" the instrument will be loaded when the instrument map is loaded, or you can set it to "ON_DEMAND_HOLD" to load on a program change and then not be purged.
For explanation see:
http://www.linuxsampler.org/api/draft-l ... INSTRUMENT
For explanation see:
http://www.linuxsampler.org/api/draft-l ... INSTRUMENT
Anders Dahnielson
Ardour2, Qtractor, Linuxsampler, M-AUDIO Delta 1010, Axiom 61, Korg D12, AKAI S2000, E-MU Proteus 2k, Roland R-5, Roland HP 1300e, Zoom RFX-1000, 4GB RAM x86_64 Intel Pentium Dual 1.80GHz Gentoo Linux
Ardour2, Qtractor, Linuxsampler, M-AUDIO Delta 1010, Axiom 61, Korg D12, AKAI S2000, E-MU Proteus 2k, Roland R-5, Roland HP 1300e, Zoom RFX-1000, 4GB RAM x86_64 Intel Pentium Dual 1.80GHz Gentoo Linux
Re: Switching between instruments using Program Change messages
Thanks for the tip, but it still doesn't work when I set them to 'Persistent'. Looks like the new instrument patch needs a new 'Note On' MIDI message for the notes that are being held
Problem:
Set up Instrument Map with 1)Tibia - No Tremulant, 2)Tibia - With sampled Tremulant
Load channel 1 with Tibia - No Tremulant
Play notes on keyboard. Tibia - No Tremulant plays
Play some notes and hold them, change patch from 1 to 2, all sound stops
Play new notes, Tibia with sampled Tremulant plays.
Holding notes does not work with patch change.
Problem:
Set up Instrument Map with 1)Tibia - No Tremulant, 2)Tibia - With sampled Tremulant
Load channel 1 with Tibia - No Tremulant
Play notes on keyboard. Tibia - No Tremulant plays
Play some notes and hold them, change patch from 1 to 2, all sound stops
Play new notes, Tibia with sampled Tremulant plays.
Holding notes does not work with patch change.
Re: Switching between instruments using Program Change messages
That's weird, it should work. The feature was implemeneted 2007-02-03, which is long before latest release.
You should not have to use PERSISTENT or ON_DEMAND_HOLD for it to work either.
You should not have to use PERSISTENT or ON_DEMAND_HOLD for it to work either.
Re: Switching between instruments using Program Change messages
Hi,ccherrett wrote:Yes it can be done. I am using the VSL libraries and this is how they have done it with their instruments. One .gig file will have many different articulations of that instrument in one file controlled by program change events.
You can use the event change editor in rosegarden to map change events in the matrix editor.
I am running VSL's Performance tool that does the program changes through a GUI mostly for me.
I hope that helps!
I recently purchased one of the last of the 1st ed. VSL libraries, and am using it with linuxsampler. The library sounds great, and works flawlessly in linuxsampler. However, I can't get the Performance Tool to work as you seem to. Actually, I can't even download it from VSL as they no longer support their legacy products. I downloaded a torrent version but can't seem to make it work in Ubuntu under wine. I got the same program to work on windows, but don't want to use windows. I want to use the performance set samples, especially legato and portamento, so need the performance tool. Could you give some advice on how to make it work? Thanks!
Re: Switching between instruments using Program Change messages
I just logged into VSLs website and they do still allow the performance tool for download. Go to them for help on downloading and registering it.kmiya100 wrote:Hi,ccherrett wrote:Yes it can be done. I am using the VSL libraries and this is how they have done it with their instruments. One .gig file will have many different articulations of that instrument in one file controlled by program change events.
You can use the event change editor in rosegarden to map change events in the matrix editor.
I am running VSL's Performance tool that does the program changes through a GUI mostly for me.
I hope that helps!
I recently purchased one of the last of the 1st ed. VSL libraries, and am using it with linuxsampler. The library sounds great, and works flawlessly in linuxsampler. However, I can't get the Performance Tool to work as you seem to. Actually, I can't even download it from VSL as they no longer support their legacy products. I downloaded a torrent version but can't seem to make it work in Ubuntu under wine. I got the same program to work on windows, but don't want to use windows. I want to use the performance set samples, especially legato and portamento, so need the performance tool. Could you give some advice on how to make it work? Thanks!
Where did you get your copy of 1st Ed? How much was it?
Thanks!