Discussion:
[Rosegarden-devel] LinuxSampler .lscp file importer for Thorn (not finished!)
Vladimir Savic
2009-10-13 18:30:28 UTC
Permalink
What it does for now:
- detects LSCP files by extension
- checks if detected file has "MAP" string in it, since we will use it
if present
- imports Banks and Programs (with program names)

Where it fails:
- you are on your own if bank name for imported Device goes over 16
(which is maximum for rg devices)

Left to be done:
- import devices
- name that devices

Specification of MIDI instrument map entry:
MAP MIDI_INSTRUMENT [NON_MODAL] <map> <midi_bank> <midi_prog>
<engine_name> <filename> <instrument_index> <volume_value>
[<instr_load_mode>] [<name>]

Brackets [] means that field is not mandatory. For now I read:
<midi_bank>, <midi_prog> and [<name>]. If <name> isn't present, I name
that instrument "Unnamed instrument". <map> field is what I plan to use
for detecting device. Infrastructure for reading name of device is there
too, but it is not used yet.

Example .lscp file attached too.

Vlada

P.S. Something wrong is happening with Bank editor... If you import
provided .lscp file and without leaving bank editor start clicking and
bank list (tree view at left) - patches get shifted in a strange way.
I'm not sure if that is my fault.
D. Michael McIntyre
2009-10-14 01:48:17 UTC
Permalink
Post by Vladimir Savic
P.S. Something wrong is happening with Bank editor... If you import
provided .lscp file and without leaving bank editor start clicking and
bank list (tree view at left) - patches get shifted in a strange way.
I'm not sure if that is my fault.
I couldn't figure out what you were talking about on patches getting shifted.

Anyway, the code looks very nice, and to the extent of my ability to test it
out (knowing nothing about Linux Sampler, and so on) it seems to work as
intended, and to be useful. Nice work, Vlada!

Committed revision 11035.
--
D. Michael McIntyre
Vladimir Savic
2009-10-14 13:16:29 UTC
Permalink
Post by D. Michael McIntyre
Post by Vladimir Savic
P.S. Something wrong is happening with Bank editor... If you import
provided .lscp file and without leaving bank editor start clicking and
bank list (tree view at left) - patches get shifted in a strange way.
I'm not sure if that is my fault.
I couldn't figure out what you were talking about on patches getting shifted.
Anyway, the code looks very nice, and to the extent of my ability to test it
out (knowing nothing about Linux Sampler, and so on) it seems to work as
intended, and to be useful. Nice work, Vlada!
Committed revision 11035.
Thank you for your time Michael.

This commit is missing two files. There were five files changed by me.

Vlada

P.S. I'll investigate the problem I'm seeing and report to list.

Loading...