Giter VIP home page Giter VIP logo

conductor's People

Contributors

nuss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jpburstrom

conductor's Issues

EV QEnvelopeView and curves

I started to play around with your version of the Conductor quark. I realized that there is a problem with the EnvelopeViews under QT.

because (QT)EnvelopeView does not implement curves it returns the envelopview itself.

Thats why the setting of curves has to be removed.

viewToEV { | view |
var t, l, c, env;
env = value;
#t, l = view.value;
env.levels = spec.map(l);
env.times = t.differentiate[1..] * duration;
//env.curves = view.curves;
this.changed(\synch, this);
}

because the envelop view doesn't provide a facility to change the curves it shouldn't matter.

and a the following is a test case. when you change the envelop in the gui you get an error.

(
c = Env.perc;
a = EV();
a.input = c;

a.value.times.debug(\t1);
a.value.levels.debug(\l1);
a.value.curves.debug(\c1);

b = EnvelopeView(w, Rect(0, 0, 230, 80))
.drawLines_(true)
.selectionColor_(Color.red)
.drawRects_(true)
.resize_(5)
.step_(0.05)
.action_({arg b; [b.index, b.value].postln})
.thumbSize_(5)
.value_([[0.0, 0.1, 0.5, 1.0],[0.1,1.0,0.8,0.0]]);
a.connect(b);
b.front;

a.value.times.debug(\t2);
a.value.levels.debug(\l2);
a.value.curves.debug(\c2);
)

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.