Skip to content

Play library (WIP)#1076

Merged
boriel merged 3 commits into
boriel-basic:mainfrom
oskostenko:play-lib
Jun 20, 2026
Merged

Play library (WIP)#1076
boriel merged 3 commits into
boriel-basic:mainfrom
oskostenko:play-lib

Conversation

@oskostenko

@oskostenko oskostenko commented May 3, 2026

Copy link
Copy Markdown
Contributor

This library provides the Play routine similar to the one that exists in Sinclair Basic 128K.

It is not completed yet, but is already functional.

The following commands are already implemented:

  • cdefgab, CDEFGAB - note pitch
  • $, # - flats and sharps
  • & - rest
  • 1-12 - note length
  • _ - tied notes
  • O, V, T - set octave, volume, tempo
  • N - separate two numbers (actually, any unexpected character does this, including space)

The following commands are not implemented yet:

  • W, U, X - set volume effects
  • () - repetition
  • !! - comments
  • H - stop
  • M - mixer control
  • Y, Z - MIDI control (also you can't pass more than 3 parameters to Play).

Some examples are also included.

@boriel boriel self-requested a review June 20, 2026 06:48

@boriel boriel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!! Thanks. 🙌
I know you're still iterating this, but you can update later at any time.

@boriel boriel merged commit eda09f9 into boriel-basic:main Jun 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants