faust
Tidal
Our great sponsors
faust | Tidal | |
---|---|---|
54 | 24 | |
2,388 | 2,094 | |
1.5% | 2.0% | |
9.6 | 6.7 | |
9 days ago | 29 days ago | |
C++ | C++ | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
faust
-
My Sixth Year as a Bootstrapped Founder
Glicol looks very cool! Also check out Faust if you haven't (https://faust.grame.fr), another FP sound programming language.
-
Welcome to the Chata Programming Language
The linked (https://github.com/grame-cncm/faust) looks reasonable to me.
Chata probably needs to work out roughly what the semantics of the language should be. Its good to know what the library support is intended to be as that informs language design (assuming the library is to be implemented in chata anyway). Quite a lot of this page is about syntax.
There are some design decisions that have deep impact on programming languages. Reflection, mutation, memory management, control flow, concurrency. There are some implementation choices that end up constraining the language spec - python seems full of these.
Echoing p4bl0, implementing the language will change the spec. Writing a spec up front might be an interesting exercise anyway. I'd encourage doing both at the same time - sometimes describe what a feature should be and then implement it, sometimes implement something as best you can and then describe what you've got.
Implementation language will affect how long it takes to get something working, how good the thing will be and what you'll think about along the way. The usual guidance is to write in something familiar to you, ideally with pattern matching as compilers do a lot of DAG transforms.
- I'd say that writing a language in C took me ages and forced me to really carefully think through the data representation.
- Writing one in lua took very little time but the implementation was shaky, probably because it let me handwave a lot of the details.
- Writing a language in itself, from a baseline of not really having anything working, makes for very confusing debugging and (eventually) a totally clear understanding of the language semantics.
Good luck with the project.
- Glicol: Next-generation computer music language
-
Csound
Csound is extremely powerful, but my favorite thing in this vein these days is Faust:
It's a functional language with a nice way of generating diagrams of DSP algorithms, but its big killer feature for me is its language bindings, which include C, C++, Cmajor, Codebox, CSharp, DLang, Java, JAX, Julia, JSFX, "old" C++, Rust, VHDL, and WebAssembly (wast/wasm) out of the box.
If you want to explore a more functional approach to sound generation, there is always Faust:
-
faust VS midica - a user suggested alternative
2 projects | 12 Aug 2023
- Where is a good place to get started with DSP coding?
-
DIY pedal using Arduino and breadboard?
Using more powerful hardware like this also gives you the option to branch out and use other tools, e.g. the popular Faust.
-
Ask HN: What audio/sound-related OSS projects can I contribute to?
I heard of https://github.com/grame-cncm/faust a while back, probably via HN. It looks interesting and actively maintained, but I didn’t get a chance to play with it. There are many other libraries listed on GitHub awesome lists such as this one: https://github.com/ad-si/awesome-music-production#libraries
-
Ask HN: Is there a great DAG framework for Python?
Does Faust do what you want? It's a language specifically for digital signal processing, and has a wide variety of compile targets.
> Faust (Functional Audio Stream) is a functional programming language for sound synthesis and audio processing with a strong focus on the design of synthesizers, musical instruments, audio effects, etc. created at the GRAME-CNCM Research Department. Faust targets high-performance signal processing applications and audio plug-ins for a variety of platforms and standards.
> The core component of Faust is its compiler. It allows to "translate" any Faust digital signal processing (DSP) specification to a wide range of non-domain specific languages such as C++, C, LLVM bit code, WebAssembly, Rust, etc. In this regard, Faust can be seen as an alternative to C++ but is much simpler and intuitive to learn.
Tidal
- Tidal Cycles – Live coding music with Algorithmic patterns
- I made a command-line tool to assist me with writing polyrhythmic drum parts
-
13 Years of History Teaching - Now Thrown Into CS.
So you’re wondering what would making music with code look like? The tools I’m familiar with are TidalCycles, Sonic Pi, and SuperCollider. I’m having a hard time describing what it’s like to make music with tools like these so here’s a video of a performance. One person is live coding the music and the other is live coding the visuals. I think it’s super cool how the music is improvised and built over time by layering commands. Some keywords you could search to see more examples would be Algorave and Livecoding.
-
Where is Haskell used?
https://tidalcycles.org/ is another great example, parsing patterns of text and printing live music.
-
Live coding languages
For sound live coding/algorave sonic pi and tidal cycles are great, both based on supercollider.
-
Sonic Pi – The Live Coding Music Synth for Everyone
I don't know the alternatives but I'm a big fan of https://tidalcycles.org/. People really do crazy things, check out the videos on the front page.
I love when 2 DJs live-code together (on the same document! Editing each other's loops) or when a VJ live-codes some visuals in reaction to the DJ live-coding the music.
-
What is a little known subject/application/problem that you learned about recently or are involved in that you think is fascinating?
If you're interested in ChuCK, there's also Pure Data (a FOSS cousin of the commercial Max/MSP) and SuperCollider and a lot of live coding algorave sorta music things are built on top of SuperCollider like TidalCycles so you can execute lines of code live via a REPL or evaluating blocks of code in a document and generate beats in realtime.
-
The Way in Which Brian Eno Created Ambient 1: Music for Airports
Tidal Cycles! https://tidalcycles.org/
As layer8 mentioned, it is technically Haskell but more specifically a DSL and environment for live coding music.
Pretty fun to play around with!
-
How would someone who is deathly broke become a serious rapper?
After digging deeper, I've found TidalCycles tidalcycles.org and that's my favorite Livecoding software. Now you can start programming music without any cost.
-
Formalizing Konnakol using Haskell - GSoC '22
The code written in this regard can be found here. My contributions focused on designing, implementing and integrating the Sequence module with the help of the Context module.
What are some alternatives?
supercollider - An audio server, programming language, and IDE for sound synthesis and algorithmic composition.
csound - Main repository for Csound
overtone - Collaborative Programmable Music
SOUL - The SOUL programming language and API
yummyDSP - An Arduino audio DSP library for the Espressif ESP32 and probably other 32 bit machines
Sonic Pi - Code. Music. Live.
Cardinal - Virtual modular synthesizer plugin
Enzyme - High-performance automatic differentiation of LLVM and MLIR.
vst-rs - VST 2.4 API implementation in rust. Create plugins or hosts. Previously rust-vst on the RustDSP group.
rellic - Rellic produces goto-free C output from LLVM bitcode
glicol - Graph-oriented live coding language and music/audio DSP library written in Rust
elementary - A JavaScript runtime for writing native audio applications, as well as a library and framework for composing audio signal processes.