smrg-lm / sc3 Goto Github PK
View Code? Open in Web Editor NEWSuperCollider library for Python https://sc3.readthedocs.io
License: GNU General Public License v3.0
SuperCollider library for Python https://sc3.readthedocs.io
License: GNU General Public License v3.0
Hi! Is it possible to add FM7 synth? I am especially interested in its arAlgo function. Thanks.
Also, I tried writing something like:
from sc3.synth import ugen as ugn
class FM7(ugn.MultiOutUGen):
@classmethod
def ar(cls, ctlMatrix, modMatrix):
return cls._multi_new("audio", ctlMatrix, modMatrix)
def _init_ugen(self, *inputs):
self._inputs = inputs
return self._init_outputs(6, self.rate)
but it will return "ChannelList([ChannelList([ChannelList([..." which I don't know how to convert into sound.
Originally posted by d3vp July 31, 2022
So far I have added the following things I found missing in sc3:
Is there any alternative to delay?
Hi,
I was wondering if you wouldn't mind clarifying what the syntax would be for accessing the patterns functionality, and for loading buffers. Also is JITLib (Ndef, Pdef, Tdef etc) included in this wrapper?
Thanks,
Mark
Hello,
First this project look really interesting. Something you dream at night when you begin in Python and Supercollider...
And you did it! i love the transcription between the two laguage.
I wanted to test and get this error (with your example script) :
ERROR:sc3.synth.server:localhost failed to boot, program scsynth not found
I'm on mac OS Catalina.
Python3.7.4
SuperCollider 3.11.2
My regular SuperCollider app is in /Applications/SuperCollider
.
I copied this app to this path to : /Users/macbook/Applications/SuperCollider
but same result...
got sc3 from source code in develop mode (everything goes fine).
For info i can use without problem an other SuperCollider / Pyhton project => supercollider and start SC server within VS-Code. So i'am wondering why it doesn't find my Scsynth program?
Thank you very much. I hope to test it soon !
Michaël Filler.
Hi!
Say I want something like Pbindef with dynamic updating, for live coding, like here in Eli Fieldsteel video:
https://youtu.be/8Is3hJvzjvs?t=1217
How do I do this?
How do I use quant (so that new updates/changes will land on a beat, not in the middle of a pattern)?
How do I update speed of TempoClock?
Hi! I would like to ask, is there any reason to choose the GPL3 license, instead of a more permissive Apache2 / MIT?
I'm asking because I wanted to use your library in my project, but I would need to change the license to GPL3, which I don't want to do (or didn't plan to do).
Or can I still use Apache2 / MIT in my project?
Hi,
First of all, thank you for the great library. I am trying to implement this example using sc3.
from sc3.all import *
@synthdef
def dtmf(freq=(770, 1633), out=0, amp=0.2, gate=1):
son = SinOsc.ar(freq, 0).sum() * amp
env = EnvGen.ar(Env.asr(0.001, 1, 0.001), gate, done_action=2)
Out.ar(out, Pan2.ar(son * env * amp))
# this works:
Pbind({'instrument': 'dtmf',
'dur': Pwhite(0.2, 0.5),
'sustain': 0.15,
'amp': 0.3,
'freq': Prand([697, 1209, 770, 1209], 13)
}).play();
# but this does not work:
Pbind({'instrument': 'dtmf',
'dur': Pwhite(0.2, 0.5),
'sustain': 0.15,
'amp': 0.3,
'freq': Prand([[697, 1209],[770, 1209], [852, 1209], [697, 1336]], 13)
}).play();
But getting following error:
ERROR:sc3.base.clock:EventStreamPlayer(EventStreamPlayer._stream_player_func.<locals>.esp_func) scheduled on SystemClock
Traceback (most recent call last):
File "/Supercollider/sc3/sc3/base/clock.py", line 237, in _run
delta = task.__awake__(cls)
File "/Supercollider/sc3/sc3/base/stream.py", line 608, in __awake__
return self.next((self, clock))
File "/Supercollider/sc3/sc3/base/stream.py", line 491, in next
self._last_value = next(self._iterator)
File "/Supercollider/sc3/sc3/seq/eventstream.py", line 140, in esp_func
yield self._play_and_delta(outevent)
File "/Supercollider/sc3/sc3/seq/eventstream.py", line 148, in _play_and_delta
outevent.play()
File "/Supercollider/sc3/sc3/seq/event.py", line 624, in play
self['freq'] = self._detuned_freq() # Before _get_msg_params.
File "/Supercollider/sc3/sc3/seq/event.py", line 221, in _detuned_freq
return self('freq') * self('harmonic') + self('detune')
TypeError: can't multiply sequence by non-int of type 'float'
Not sure if I am doing something wrong or it is a bug or missing feature.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.