Giter Site home page Giter Site logo

sc3's People

Contributors

1riss avatar dependabot[bot] avatar munshkr avatar pabloriera avatar smrg-lm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sc3's Issues

FM7 synth

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.

Missing patterns from RandomDistPatterns.sc

Discussed in #14

Originally posted by d3vp July 31, 2022
So far I have added the following things I found missing in sc3:

  • method: Env.delay
  • class Pgauss(ValuePattern)

Is there any alternative to delay?

syntax for patterns, loading buffers etc

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

Scsynth not found.

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.

License

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?

Problem using list of freq in synthdef & Pbind

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.