Coder Social home page Coder Social logo

dktr0 / punctual Goto Github PK

View Code? Open in Web Editor NEW
66.0 66.0 4.0 102.46 MB

browser-based, zero-installation, audio-visual live coding language

License: GNU General Public License v3.0

Haskell 23.29% Makefile 0.30% CSS 0.15% Nix 0.21% JavaScript 76.01% HTML 0.04%

punctual's People

Contributors

dktr0 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

punctual's Issues

Variety of unexpected output with continuous functions on Intel UHD 620 graphics

Hi David,
I've been preparing a demo for my workshop on my laptop and finding a significant number of unexpected things occurring with continuous functions.

I've verified the same issues are operating system independent, so I believe it's related to hardware not drivers:

  1. sin behaves like saw
    https://youtu.be/Vpp4NWBaqaM

  2. spin with a time graph outputs to the entire screen space for a brief period every cycle, but then resets the spin so it doesn't complete a cycle
    https://youtu.be/e3omnOFhIRE

CSS missing from release

the punctual-standalone-0.4.2.zip release doesnt include style.css from this repo, so running the app presents a somewhat confusing white screen.

FM for a graphical position gives strange results

Not sure if this is the right place for it...

I was just trying a frequency-modulation expression as a position, and it seems like the values go out of range somewhere.

In audio, frequency modulation works exactly as you would expect.

sin ((sin(220) + 1) * 220) * 0.2 >> centre;

// sounds basically the same as SuperCollider
a = { SinOsc.ar((SinOsc.ar(220) + 1) * 220, 0, 0.2).dup }.play;

OK, let's translate that to graphics:

-- no FM, this is OK
circle [sin(0.05) * 0.5, sin(0.06) * 0.5] 0.25 >> rgb;

But:

-- huh?
circle [sin(sin(0.01) * 0.02 + 0.03) * 0.5, sin(0.06) * 0.5] 0.25 >> rgb;
circle [sin(0.05) * 0.5, sin(0.06) * 0.5] 0.25 >> green;

sin(0.01) * 0.02 + 0.03 should range between 0.03 +- 0.02 = 0.01 to 0.05, but the white circle quite obviously moves much faster than the green one at times. That would be explained only if the calculation is being done incorrectly. But the calculation seems to be correct for audio. I'm mystified.

Forcing order of operations with extra brackets doesn't help: sin(sin(0.01) * 0.02 + 0.03) and sin((sin(0.01) * 0.02) + 0.03) appear to behave identically.

Reference.md description of +- is incorrect

lpf (saw (23m)) (250 ~~ 350 $ sin 1) 10 * (-20) db >> left;
lpf (saw (23m)) (300 +- 50 $ sin 1) 10 * (-20) db >> right;

Why are these not the same? I might expect some phase shift on the modulator but the right channel seems totally wrong.

syntax error if comment ends with semicolon

Hi dr. 0,

So found that commeting does not really works as one would except:
If you have a line of code, that you want to comment out, then Punctual will give you an error if you do not also remove the ending semicolon of that line:
No comments:
Screenshot 2020-05-13 at 19 43 45

Error when trying to make a comment, after removing the semicolon:
Screenshot 2020-05-13 at 19 43 57

Comment accepted, but now you have to remember to add the semicolon if you want to use your code again:
Screenshot 2020-05-13 at 19 44 09

And it looks to be the same in Estuary:
Screenshot 2020-05-13 at 19 49 58

All the best
Søren Peter

add mod operation

useful for implementing/emulating XOR, among other many things, no doubt!

Missing the latest documentation? (e.g. for feedback)

Hi there, I discovered Punctual through a workshop last week, and it seems really fun and interesting. However, I was wondering what functions I may be missing from the documentation? I know of several things, such as fdbk and fb, which don't appear in the REFERENCE.md. Is there a recommended way in the code to "grep" for the list of current functions?

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.