[SOLVED] Any Csound Gurus Want/Tried to Tackle Hadron Synth?

All your LV2 and LADSPA goodness and more.

Moderators: MattKingUSA, khz

ssj71
Established Member
Posts: 1294
Joined: Tue Sep 25, 2012 6:36 pm
Has thanked: 1 time

[SOLVED] Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by ssj71 »

Hadron is an open source "particle" synth capable of both synthesis and realtime granular effects. The Csound source code is freely available and for mac and windows users there are also free binary VSTs and AUs.
http://createdigitalmusic.com/2012/11/g ... in-videos/
http://www.partikkelaudio.com/

I know nothing of Csound and am stuck trying to run it with the error:
Undefined macro: '$_PartikkelTables__N_A'

This is csound 6.04 from the kxstudio repos.

I found in the ML archives this mention of the same but no reply or fix mentioned:
https://sourceforge.net/p/csound/mailma ... /34531674/

Any Csound gurus out there who can help me try this one out? I'm hoping the open-source benefits can come to light here. :)

Thanks.
Last edited by ssj71 on Mon Mar 14, 2016 7:51 pm, edited 1 time in total.
_ssj71

music: https://soundcloud.com/ssj71
My plugins are Infamous! http://ssj71.github.io/infamousPlugins
I just want to get back to making music!
ssj71
Established Member
Posts: 1294
Joined: Tue Sep 25, 2012 6:36 pm
Has thanked: 1 time

Re: Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by ssj71 »

I've gotten a little further, finding that I can escape the '$' in certain macros to get past that error. But now I'm getting the error:
"Cannot open #include'd file inc/setModFuncTable.inc"

and am stuck. You can see what I did at https://github.com/ssj71/hadron-particl ... f6680cd362

I've filed a bug about the substitution thing:
https://github.com/csound/csound/issues/609

Edit:
the interested might find this thread interesting too: https://www.linuxmusicians.com/viewtopi ... 293#p45217
_ssj71

music: https://soundcloud.com/ssj71
My plugins are Infamous! http://ssj71.github.io/infamousPlugins
I just want to get back to making music!
User avatar
davephillips
Established Member
Posts: 592
Joined: Sat Aug 15, 2015 1:05 pm
Has thanked: 35 times
Been thanked: 23 times

Re: Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by davephillips »

ssj71 wrote: I know nothing of Csound and am stuck trying to run it with the error:
Undefined macro: '$_PartikkelTables__N_A'

This is csound 6.04 from the kxstudio repos.
I gave it another whack with the latest Csound 6.07 built from git sources. Still no joy, I get the same macro error, so I wrote Oeyvind for advice. I'll report here if he can help.

Best,

dp
User avatar
davephillips
Established Member
Posts: 592
Joined: Sat Aug 15, 2015 1:05 pm
Has thanked: 35 times
Been thanked: 23 times

Re: Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by davephillips »

Yo ssj,

Okay, I have it working here now, thanks to Oeyvind's help. He sent me an improved CSD file available here :

http://oeyvind.teks.no/ftp/Hadron/hadro ... ne_cs6.zip

You may want to adjust the sr/ksmps values in Hadron.orc (mine are sr=48000 and ksmps=64 to match my JACK settings) and you'll need to rename one include file (change setModfuncTable.inc to setModFuncTable.inc). After that you should be able to run the CSD.

However, it's possible that your version of Csound won't support everything in Partikkel. Let me know of any other errors that might show up, I'll report them to Oeyvind.

I think this instrument might be portable to Cabbage. The FLTK GUI is merely functional, a much nicer interface could be created with Cabbage.

HTH,

dp
ssj71
Established Member
Posts: 1294
Joined: Tue Sep 25, 2012 6:36 pm
Has thanked: 1 time

Re: Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by ssj71 »

Hi Dave!

Thanks for your help! After renaming setModFuncTable.inc and setting --rtmidi=alsa I'm hitting the error:

Code: Select all

ALSA lib rawmidi.c:286:(snd_rawmidi_open_noupdate) Unknown RawMidi 4
ALSA: error opening MIDI input device: '4'
 *** error opening MIDI in device: -1 (Unknown MIDI error)
It opens a window very briefly but then immediately closes it, so I'm a lot closer than I was yesterday. Any ideas?
_ssj71

music: https://soundcloud.com/ssj71
My plugins are Infamous! http://ssj71.github.io/infamousPlugins
I just want to get back to making music!
User avatar
davephillips
Established Member
Posts: 592
Joined: Sat Aug 15, 2015 1:05 pm
Has thanked: 35 times
Been thanked: 23 times

Re: Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by davephillips »

ssj71 wrote:Hi Dave!

Thanks for your help! After renaming setModFuncTable.inc and setting --rtmidi=alsa I'm hitting the error:

Code: Select all

ALSA lib rawmidi.c:286:(snd_rawmidi_open_noupdate) Unknown RawMidi 4
ALSA: error opening MIDI input device: '4'
 *** error opening MIDI in device: -1 (Unknown MIDI error)
It opens a window very briefly but then immediately closes it, so I'm a lot closer than I was yesterday. Any ideas?
Open the CSD and set -M4 to -Ma.
Rory
Established Member
Posts: 10
Joined: Mon Jul 01, 2013 9:53 am

Re: Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by Rory »

I think I may have a copy of a Cabbage version of Hadron. If it's Ok with Oeyvind I can dig it up. I'm just not sure if it was the full package.
ssj71
Established Member
Posts: 1294
Joined: Tue Sep 25, 2012 6:36 pm
Has thanked: 1 time

Re: Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by ssj71 »

davephillips wrote:Open the CSD and set -M4 to -Ma.
There it is! I can now run Hadron_Csound_Standalone.csd but I can't figure out how to get midi in. Niether Jack nor VMPK sees any midi connections. PulseAudio shows csound as playing back though. (EDIT I'm reading http://www.csounds.com/manual/html/RealTimeLinux.html I think the answer is there, but I'll have to wait till tomorrow to try more)

The FLTK version says "csound: rawmidi.c:974: snd_rawmidi_write: Assertion `rawmidi' failed." after a few tweaks to the -odac flags.
Rory wrote:I think I may have a copy of a Cabbage version of Hadron. If it's Ok with Oeyvind I can dig it up. I'm just not sure if it was the full package.
That would be great! I assume you know how to get in contact with him better than I do. He's commented on my bug report and thats the only contact I've had.

I think this synth needs just a little TLC but deserves much more recognition than it has received. I'm excited about this.
Last edited by ssj71 on Thu Mar 10, 2016 10:13 pm, edited 1 time in total.
_ssj71

music: https://soundcloud.com/ssj71
My plugins are Infamous! http://ssj71.github.io/infamousPlugins
I just want to get back to making music!
User avatar
sysrqer
Established Member
Posts: 2595
Joined: Thu Nov 14, 2013 11:47 pm
Has thanked: 376 times
Been thanked: 170 times
Contact:

Re: Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by sysrqer »

Wow, never seen that synth before, looks impressive. Definitely would be fantastic if one of you clever people can get it working :D
glowrak guy
Established Member
Posts: 2547
Joined: Sat Jun 21, 2014 8:37 pm
Been thanked: 320 times

Re: Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by glowrak guy »

ssj71 wrote: how to get midi in. Niether Jack nor VMPK sees any midi connections.
I have an old/odd system, but in one case where midi was weirdly not happening,
running Tonespace vst, and configuring the midi within it, exposed it.
Cheers
Rory
Established Member
Posts: 10
Joined: Mon Jul 01, 2013 9:53 am

Re: Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by Rory »

I've managed to dig up the one Oeyvind sent me about a year ago. I'm still trying to iron out a few little issues but Oeyvind said he was glad to help. I'll get back to you when I have something to show.
ssj71
Established Member
Posts: 1294
Joined: Tue Sep 25, 2012 6:36 pm
Has thanked: 1 time

Re: [SOLVED] Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by ssj71 »

Got it. If anybody wants to try it out just download my repo with the little tweaks and follow the readme.
https://github.com/ssj71/hadron-particle-synth
I haven't put it through the ringer, but some interesting sounds already.

Hopefully soon we'll have a prettier, more usable cabbage version. :)
_ssj71

music: https://soundcloud.com/ssj71
My plugins are Infamous! http://ssj71.github.io/infamousPlugins
I just want to get back to making music!
Rory
Established Member
Posts: 10
Joined: Mon Jul 01, 2013 9:53 am

Re: [SOLVED] Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by Rory »

Here's a link to some info and the Linux version that Oeyvind put together. You should probably use the latest version of Cabbage to run it but it will probably run fine with older builds.

http://forum.cabbageaudio.com/t/announc ... abbage/169
ssj71
Established Member
Posts: 1294
Joined: Tue Sep 25, 2012 6:36 pm
Has thanked: 1 time

Re: [SOLVED] Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by ssj71 »

Thanks Rory. I'll let you know how it works for me once I get a chance to try it.

Just curious why are all plugins default with 8 ports? That seems like it will just be annoying to use with ardour.
_ssj71

music: https://soundcloud.com/ssj71
My plugins are Infamous! http://ssj71.github.io/infamousPlugins
I just want to get back to making music!
Rory
Established Member
Posts: 10
Joined: Mon Jul 01, 2013 9:53 am

Re: [SOLVED] Any Csound Gurus Want/Tried to Tackle Hadron Synth?

Post by Rory »

I know. It's true. Actually on Linux I can make it a build option. It's not so annoying in other DAWs. It's fine in Bitwig for example where it defaults to the first stereo pair. I will see if I can set a preferred arrangement for channels. Should be possible.
Post Reply