Cmajor

1 program Added 2026-02-16T12:00:00Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit c3875e9c80 · authored 2026-02-16T16:45:43+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Cminor (0.33)CMake (0.25)Actor (0.15)Aldor (0.15)Cedar (0.15)

LLM-contributed programs

Sine Wave Oscillator

Provenance: commit c3875e9c80 · authored 2026-02-16T16:45:43+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.cmajor · license: ISC · added: 2026-02-16T12:00:00Z
processor SineOscillator
{
    input event float frequencyIn;
    output stream float audioOut;

    event frequencyIn (float newFrequency)
    {
        frequency = newFrequency;
    }

    float frequency = 440.0f;
    float phase = 0.0f;
    float phaseIncrement;

    void main()
    {
        let sampleRate = processor.frequency;

        loop
        {
            phaseIncrement = float (frequency * twoPi / sampleRate);

            audioOut <- sin (phase);
            phase = addModulo2Pi (phase, phaseIncrement);
            advance();
        }
    }
}

Contribute — propose a file extension

Tell us where to find evidence about Cmajor (mapped to pl/cmajor). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Cmajor/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← clx CMake →