Skip to content

staves:0.1.0 #2589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/preview/staves/0.1.0/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
= MIT License

Copyright 2025 Matthew Davis

https://opensource.org/license/mit

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7 changes: 7 additions & 0 deletions packages/preview/staves/0.1.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Staves (Typst Package)

This Typst package is used to draw musical scales.

See `docs.typ` for usage information.

![example](examples/bare.png)
24 changes: 24 additions & 0 deletions packages/preview/staves/0.1.0/assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Symbol SVGs

This folder contains SVGs of clefs, sharps/flats, and note heads.
Sharps and flats are available as unicode characters, but they render a bit strangely when blown up. By using SVGs, this means the output of this library will be robust to changes in font size, typeface etc.

These files came from Wikipedia. They are all in the public domain. The license for this package does not apply to these files. For some I edited them to delete the stave lines.

Alto: https://commons.wikimedia.org/wiki/File:Alto_clef.svg

Bass: https://commons.wikimedia.org/wiki/File:Bass_clef.svg

Treble: https://en.wikipedia.org/wiki/File:GClef.svg

Flat: https://commons.wikimedia.org/wiki/File:Flat.svg

Sharp: https://commons.wikimedia.org/wiki/File:Sharp.svg

Double Sharp (X): https://commons.wikimedia.org/wiki/File:Llpd%2B2.svg

Natural: https://commons.wikimedia.org/wiki/File:%D0%97%D0%BE%D1%80%D1%8F._%D0%9D%D0%BE%D1%82%D0%B8._1894._08._185._4.svg

Quarter note: https://commons.wikimedia.org/wiki/File:Treblea4.svg

Whole note: https://commons.wikimedia.org/wiki/File:Whole_note.svg
55 changes: 55 additions & 0 deletions packages/preview/staves/0.1.0/assets/accidental/double-sharp-x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions packages/preview/staves/0.1.0/assets/accidental/flat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions packages/preview/staves/0.1.0/assets/accidental/natural.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions packages/preview/staves/0.1.0/assets/accidental/sharp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions packages/preview/staves/0.1.0/assets/clefs/alto.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions packages/preview/staves/0.1.0/assets/clefs/bass.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/preview/staves/0.1.0/assets/clefs/treble.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading