Patch that reacts only to midi note 40 (= E2)?
I'd like to use a Raspberry Pi (Zero) as a snare drum for my drum computer. That drum computer sends midi note 40 (= E2 on a Midi keyboard) if the snare drum needs to sound.
Is it possible to let Pd Vanilla react to ONLY Midi note 40? And only to the 'note on' message, not the 'note off' message? I've tried it in Ingen and there it (almost) works, but there is no Ingen package for Raspbian (= the OS of a Raspberry Pi).
VulcanBX Drum Machine Synthesizer using Pure Data Extended update 1
Hello. I modify my VulcanBX drum machine synthesizer with new GUI and also
i added volume and pan control for individual instruments. The effect section is partially finished. And also i added more effects.
VulcanBX Drum Machine Synthesizer using Pure Data Extended
I just want to share about my drum machine synthesizer.
Currently you can save,load your own rhythms and also you can make your own types of kick,snare,open-hat,closed-hat,bass instruments. You can save,load your instrument.
Effect section is not finished yet but i am planning to add much more...
Here are is a Youtube video to see how it looks and sound.
Youtube Video :
Patch Download : Vulcan BX Drum Machine.zip
Save Settings Not Working PD_Vanilla
@flagpuppy On my Windows7 machines they are stored here.......
Vanilla and Extended stored separately in the following locations (Windows 7)........ Pd and Pd-extended folders in each address.
HKEY_CLASSES_ROOT\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\
HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\
Here the "big string" will be different for your machine.....
HKEY_USERS\......big string......Software\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\
This one twice...... probably last known good, and?
It could be the same for Windows8.......?
I do not have Vanilla "installed".... I have many versions just sitting in a folder on my desktop, and the settings in the registry at those addresses are applied to all of them when any one of them is changed.
The prefs are put there by Windows....... google "UAC Virtualization" for more info..... which might help you resolve your problem........ https://blogs.msdn.microsoft.com/oldnewthing/20150902-00/?p=91681
It could be that you did not remove a block that was automatically put on your Pd folder by Windows8 when you downloaded the Pd program. Right-click the folder after it is unzipped and "unblock" might work.....?
Also..... check the security permissions for pd.exe (in pd/bin).
David.
Stomp-board my current project

This is a project I started just before Xmas. It was a really just an exercise to see how my nknob.pd abstraction would work in the real world, then morphed into a styling execise.
Stomp-board is a collection of guitar effects vaguely resembling stomp boxes. They can be arranged
and wired in any order and can be repeated as often as required. Each effect is given a unique name
when placing and this name is used to automatically save preset parameters against.
Effects are placed as objects in the normal Pd manner with one argument (eg [digi-delay Delay-1]) and connected with audio wires that should be in line with the round markers (there are fake inlets and outlet to the right as spacers)
As a graphics exercise its a failure because the nknob.pd is very heavy in the template area.
Its almost impossible to delete the effects objects as they grow in number (they will eventually delete though) and it is therefore essential to use the Quit button to end a session. There is a barely started help file.
stomp-board.pd is the demo (see pic), stomp-base.pd is the minimum start point.
I have collected the whole thing including the required externals in a folder Pd-effects-stand-alone
I think out of the box its windows only and in fact I have a folder for Pd 0.48 portable (empty) and a batch file stomp.bat that points to it (you will need to download Millers pd-vanilla portable version to use that)
Points of interest
In stomp-board.pd The looper can automatically record one cycle of drums from four-drums then stop the drums and play the loop and if the guitar is ready then record that on the next cycle
there is a wireless way to send messages to most controls via the unique name + control name
nknob has a range of 0-100
Any questions, please ask.
I have bash on my 1970's Ibanez strat-copy using this program just about every day
Cheers Balwyn
The following effects and control objects are available
active-switch.pd,
audio-catch.pd
audio-in.pd
audio-out.pd
audio-receive.pd
audio-send.pd
audio-throw.pd
audiobar.pd
chorus.pd
compressor.pd
controlbar.pd
data-send.pd
delay-only.pd
digi-delay.pd
distortion.pd
drum.pd
four-drums.pd
fuzzbox.pd
graphic-eq.pd
grater-v2.pd
lfo.pd
looper.pd
nknob.pd
noisegate.pd
panning.pd
para-eq.pd
phaser.pd
pitchshift.pd
pot.pd
presetter.pd
rec-player.pd
reverb.pd
rnd.pd
scope.pd
stomp-base.pd
stomp-board.pd
stomp.bat
tremolo.pd
tuner.pd
vcf-phaser.pd
volramp.pd
wavescope.pd
Timer delay ?
Hello,
I am trying to detect a specific range of midi note and send them using OSC.
The thing is, my range is big and therefore I am receiving a lot of OSC message.
I am using a snare drum, using PureData I saw that the drum midi note is usually between 48 and 49, I am looking for a solution to detect when the drum has been hit or not.
When I am hitting the drum, sometimes, PureData detect and send 48.2 / 48.4 / 48.5 (for example) so I receive three "hit" instead of only one.... I searched for a timer in order to send only one OSC message in an interval but can't find anything .. A timer or any other idea coming in your mind..
I hope I was clear enough...
Here is my patch :
Fiddle_OSC.pd
Thank you for your help and advices,
Greg
Cyclone library stopped suddenly loading (PD Vanilla/Windows 10)
@LiamG @ilpoj
As I suspected, the startup preferences are stored in the registry.
It is likely that windows 10, pursuing the same lockdown techniques as OSX, is not allowing Pd to write to the registry. Google might get you further than this forum.
Everything..... paths, startup options, libraries to be loaded, audio and midi options are stored there.
If you cannot load libraries, or save your settings then that is because you cannot write to the registry.... it's part of the same problem.
I can post my settings that you could paste into your registry (and then modify) if you wish.... obviously at your own risk!........ but first.....
You can right-click the folders in the registry and change permissions.... which should be a zero risk.
Open Regedit and find the key folders listed below and check their permissions.....
You might need to open regedit with admin permissions.
You could also try opening Pd with admin permissions and trying to install cyclone and set paths, but I think it is wish85.exe that accesses the registry.
Vanilla and Extended preferences are stored separately in the following locations (Windows 7)....
HKEY_CLASSES_ROOT\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Pd
HKEY_CLASSES_ROOT\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Pd-extended
HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Pd
HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Pd-extended
This one twice...... probably last known good, and?
HKEY_USERS..."long string" ... Software\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Pd(and Pd-extended)
The "long string" will be different to mine on your machine.
@LiamG The garbled paths can be corrected and saved again....... which usually solves the problem.
That seems to be particular to Vanilla.
David.
Weird comport problems...magic machine? Arduino involved.
I have a big patch that ultimately outputs to an arduino that then controls relays that fire strikers that play a gamelanish assembly of music. Here's a link to vid of the working machine:
So the problem is, it works great, always seamless on my computer (MacBook Pro (15-inch, Early 2011) 2 GHz Intel Core i7 4 GB 1333 MHz DDR3, but when I try to run the exact same patch to the same arduino using another machine (last attempt was a MBPro 13 inch mid 2010, 2.4 ghz intel core 2 duo 16 gb 1067 mhz ddr, but it's happened before on a machine I don't have the specs for right now) the comport almost immediately runs into serial overruns and shuts down the comport. I'm running at 115200 baud.
I'll admit I'm not using the most efficient means of serial communication, but aside from that, it does work on the machine it was written on. The machine that it is not working on is more powerful than the one that it is...do I have a magic computer?
Wavetable Drum Machine - repost
I uploaded this Wavetable Drum Machine last year but it became a casualty of a server issue (I hope it didn't cause it, it is a bit heavy). Anyway it didn't work under windows so while I was updating old drum machines I sorted this one out.

Here's the instructions, which are also under the Balwyn button.
Wavetable Drum Machine
Balwyn 2015
8 x bank of 64 amplitude sliders, each bank runs in sync driven by a clock. The clock has 16 start/end settings plus a repeat cycles setting, there is also a Vradio block to set the return position.
The mixer block has 8 x level & pan settings with stereo to the dac~
The wave selector is for loading the individual wav files to the relevant drum line. The *.wav files must be stored in the 'waves' folder within the program folder and selected from there.
Saving must be saved to the 'pattern' folder within the program folder. Save the file with one word and no extension, a file of that name will be created for the pattern settings. Another file with the same name will also be created with the extension '.kit', this stores the names of the wave files.
Loading must be from the 'pattern' folder within the program folder. All the clock, pattern and wave files will be updated. select only the file WITHOUT the .kit extension, otherwise nothing will load and soundfiler errors will appear in the Pd window.
The clear button will clear all the amplitude sliders, set all the clock settings to 1 except BPM which is set to 500.
The supplied samples were recorded via Audacity from Qsynth. Ditch them for your own
Cheers
Balwyn
Drum Power a different kind of drum machine
@LiamG thanks for the nice comment.
Yes, all the audio is from the [any-drum] patch, simple but effective. each parameter is set at each sequence step by reading the $0-file-array at an index plus an offset (eg +96 for velocity plus 32 index points) so as the sequence advances each parameter of [any-drum] is changed.
If you are looking in drum-power.pd there is a gui-bang just below the [route] pointing to a [quit( message this will close the patch and quit pd (minimising the patch and closing pd also works if no changes have been made). I assume the hanging has to do with cleaning up the struct data while mouse messages are happening, but I'm not sure.
I didn't know about [closebang] I think that might help. Thanks for that.
I also uploaded a drum machine 2 years ago when I first made [any-drum] the title of the post is 'a-drum-kit' I need to fix the speed control, its not in bpm.



