You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to dump Synth PCM Samples from e2 synth with the dump_extracted_pcm.py script but I have some issues, in particular to open midi port with mido.open_input('electribe') saying OSError: unknown port 'electribe'. I patched it as
mido.open_input() port = mido.get_input_names()[0]
then I got new issue with the e2SysEx.read_cpu_ram() function, therefore I fill I might misunderstand the process to dump Synth PCM samples.
What I did is :
turn on my e2 synth
plug USB from e2 synth to my computer
lsusb to ensure that e2 synth is detected by my computer
then python scripts/dump_extracted_pcm.py
I hope @bangcorrupt you can detail the steps needed.
In addition, I wonder that if we can use e2SysEx.read_cpu_ram() to get Synth PCM Samples we should be able to get the other samples of the e2 synth ?
Thank you in advance for your attention to my questions!
Okay, so I did patch my e2 synth with synth-hacked-SYSTEM.VSB patched using the synth-pcm-dump branch you linked above, then I tried to dump with scripts/dump_extracted_pcm.py.
It gaves me OSError: unknown port 'electribe2 sampler electribe2 s' as the first time.
What is the output of mido.get_input_names() and mido.get_ouput_names()?
>>> mido.get_input_names()
['Midi Through:Midi Through Port-0 14:0']
>>> mido.get_output_names()
['Midi Through:Midi Through Port-0 14:0']
and lsusb gave me Bus 001 Device 007: ID 0944:012e KORG, Inc. electribe2 sampler
Then I added port = mido.get_input_names()[0] before this line
and it gave me :
Traceback (most recent call last):
File "./hacktribe-synth-pcm-dump/./scripts/dump_extracted_pcm.py", line 8, in <module>
e = E2Sysex()
^^^^^^^^^
File "./hacktribe-synth-pcm-dump/scripts/e2sysex.py", line 37, in __init__
self.global_channel, self.id, self.version = self.search_device()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: cannot unpack non-iterable int object
Well, I guess it was just an ALSA bug that didn't recognize the device, but after a reboot, everything worked fine and it was recognized. Then I did pyhton3 scripts/dump_extracted_pcm.py and a few errors occurred, but I think it worked. Here is the output :
python3 ./scripts/dump_extracted_pcm.py
DEBUG:root:Initialise SysEx
INFO:root:Found electribe
INFO:root:Global channel 0
INFO:root:Firmware version 2.2
DEBUG:root:Getting decompressed PCM from CPU RAM
DEBUG:root:Called read_cpu_ram
DEBUG:root:Sending message
MidiInAlsa::alsaMidiHandler: unknown MIDI input error!
System reports: Resource temporarily unavailable
MidiInAlsa::alsaMidiHandler: unknown MIDI input error!
System reports: Resource temporarily unavailable
DEBUG:root:Received response
DEBUG:root:Decoding binary
DEBUG:root:Writing pcm-dump.wav
I listenned to the wav created and at ~ 50 second it is totally noise, there is no wave form... do you have the same ?
In addition, if I want hacktribe now that the sampler firmware is installed on my e2 synth (originally) did I need to use sampler-hacked-SYSTEM.VBS or synth-hacked-SYSTEM.VBS ?
Repository owner locked and limited conversation to collaborators on Nov 8, 2025
Activity
bangcorrupt commentedon Nov 7, 2025
The steps you're taking look correct, there is likely an issue with the port name.
What is the output of
mido.get_input_names()andmido.get_ouput_names()?Can you describe the issue and post any logs you get from the script?
There are no other samples.
bangcorrupt commentedon Nov 7, 2025
You also need to make sure you have patched the firmware using the
synth-pcm-dumpbranch.inkapmb commentedon Nov 7, 2025
Okay, so if I understand right :
synth-hacked-SYSTEM.VSBsynth-revert-SYSTEM.VSBpython scripts/dump_extracted_pcm.pyam I right ?
inkapmb commentedon Nov 7, 2025
In addition when I mean the other samples, I mean sample from 001 (SubBeef) to 325 (Oldie)
bangcorrupt commentedon Nov 7, 2025
No, you need to install
synth-hacked-SYSTEM.VSBpatched using thesynth-pcm-dumpbranch I linked above.Then you will be able to dump synth PCM samples using
scripts/dump_extracted_pcm.py.These will be included, it will dump all the samples as one file. It should take about a minute and will look like it is doing nothing.
If you still have issues with the script, post the logs I asked for above.
inkapmb commentedon Nov 7, 2025
Okay, so I did patch my e2 synth with
synth-hacked-SYSTEM.VSBpatched using thesynth-pcm-dumpbranch you linked above, then I tried to dump withscripts/dump_extracted_pcm.py.It gaves me
OSError: unknown port 'electribe2 sampler electribe2 s'as the first time.and
lsusbgave meBus 001 Device 007: ID 0944:012e KORG, Inc. electribe2 samplerThen I added
port = mido.get_input_names()[0]before this lineand it gave me :
bangcorrupt commentedon Nov 7, 2025
This shows that
midocan't see the electribe, it would be listed after'Midi Through...'.What is the output of
mido.backend?In a bash shell, what is the ouput of
aconnect -l?inkapmb commentedon Nov 7, 2025
gaves :
<backend mido.backends.rtmidi (loaded)>bangcorrupt commentedon Nov 7, 2025
Linux can't see the electribe as a MIDI device, you need to fix that first.
inkapmb commentedon Nov 7, 2025
I'm currently searching but I dont have any clue of why and how to do it for the moment...
inkapmb commentedon Nov 7, 2025
Well, I guess it was just an
ALSAbug that didn't recognize the device, but after a reboot, everything worked fine and it was recognized. Then I didpyhton3 scripts/dump_extracted_pcm.pyand a few errors occurred, but I think it worked. Here is the output :bangcorrupt commentedon Nov 7, 2025
That looks right, you should have
pcm-dump.wavin the same directory.I get these errors too, I think it's just because it takes a long time.
inkapmb commentedon Nov 7, 2025
I listenned to the wav created and at ~ 50 second it is totally noise, there is no wave form... do you have the same ?
In addition, if I want
hacktribenow that the sampler firmware is installed on my e2 synth (originally) did I need to usesampler-hacked-SYSTEM.VBSorsynth-hacked-SYSTEM.VBS?