sonic-pi-net / sonic-pi

Code. Music. Live.
https://sonic-pi.net
Other
10.82k stars 922 forks source link

synth :piano no audio o/p #639

Closed soslug closed 9 years ago

soslug commented 9 years ago

Hi Sam, I have a question is the Piano synth integrated into sonic-pi yet? I looked in help and Issue forum but nothing is mentioned.

I have tried on the following:

commit d91b7602cede4ca159 and commit 5a5f44e7a9cac1e6515e162ec

use_synth :piano

loop do play_pattern_timed [:C4, :F7, :C4, :A8, :C4], [0.5, 2, 3] end

Machine and Os specification follows

Linux Mint 64 Bit 17.2 Dell Precision 690 Volume Maximum Sonic-Pi Volume Maximum

Other synths as far as I can tell are not effected

Log window does not detail any errors and appears to play however I do not get any audio o/p on either version of Sonic-pi.

samaaron commented 9 years ago

If you're building Sonic Pi yourself, you'll need to pull in the extra scsynth ugens from SuperCollider for certain FX and synths such as :bitcrusher and :piano.

rbnpi commented 9 years ago

You can get the required plugins compiled for mac here http://sourceforge.net/projects/sc3-plugins/files/OSX_3.6/

soslug commented 9 years ago

Hi Robin, Sam

I have found a selection of two plugin sources in sourceforge the version 3 which I can download but does not seem to have the ugens for piano or bitcrusher might be wrong on that part. The 3.1 plugins again I can download but the tar.gz but this appears corrupt so not sure if this has the ugens needed or not. Is there another source I can download the source file for the 3.1 plugins if this is what I need? I have searched and there is a github.io for supercollider but only has the sc3 plugins.

I have also tried to upgrade supercollider from a PPA but this to has also thrown up an error. If you know where I can obtain the ugens or plugin file and this is a quick process then I will give it a go if it is long a drawn out I will wait until it is available via Sonic-pi. I am a little puzzled as to why the piano and bitcrusher are included if we cannot use them. I did ask if the piano is incorporated yet!

samaaron commented 9 years ago

Hi @soslug it's important to point out that the releases are only provided for Raspberry Pi, Mac and Windows. We don't provide any support for Linux users. If you want to build from source, there are many steps to work through to pull together the many parts that Sonic Pi is built from. One of those parts is the set of extra ugen files which are compiled binary files such as these specifically compiled for Raspberry Pi: https://github.com/samaaron/sonic-pi/tree/master/app/server/native/raspberry/extra-ugens-jessie

It may be the case that you'll have to compile these yourself from the SuperCollider source for your specific Linux distribution.

Sorry I can't help much further, but giving specific support to every individual Linux dev is beyond my capacity. I am hoping that some 'linux champions' will step up and provide this support for the community.

soslug commented 9 years ago

Hmm, does seem to be a linux issue then, I can confirm Raspberry Pi does run :piano on 2.6 version with the latest img from raspberrypi.org apologise if you thought I doubted you.

samaaron commented 9 years ago

No need to apologise at all :-)

I'm just sorry I don't have more time to help more people than I already do!

alech commented 9 years ago

I managed to compile the extra ugens from https://github.com/supercollider/sc3-plugins under Ubuntu.

Unfortunately, :piano still wouldn't work. Turns out scsynth needs to be passed the path to them as a command line option, so the attached patch might come in helpful: extra_ugens.patch.txt.

This assumes that the compiled .so files have been copied to app/server/native/linux/extra-ugens/. With this, the :piano works \o/