Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gmclan-org/piano_example
GameMaker piano (using pitch)
https://github.com/gmclan-org/piano_example
Last synced: 2 months ago
JSON representation
GameMaker piano (using pitch)
- Host: GitHub
- URL: https://github.com/gmclan-org/piano_example
- Owner: gmclan-org
- License: mit
- Created: 2023-02-17T10:24:41.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-17T12:19:50.000Z (almost 2 years ago)
- Last Synced: 2024-08-02T07:12:57.011Z (5 months ago)
- Language: Game Maker Language
- Size: 47.9 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gamemaker - Piano example - Example of playing intrument notes by changing pitch, using only one audio file. (Useful Extras / Recommendations)
README
# GameMaker 2023+ Piano demo
This demo shows how to change audio pitch by semitones, using Piano as an example.
It contains only one audio sample - which is note "C", and all others are played using "magical formula" - `pitchShift = power(2, semitone/12)`, where `semitone` is number of semitones from default sound (for example D is +2 semitones). Works with negative numbers too.
As it uses additional params added recently in `audio_play_sound`, may not work in some GM versions from 2022 (and earlier).
You can check live demo on: https://gnysek.itch.io/gamemaker-piano
You can watch demo on youtube: https://www.youtube.com/watch?v=HgYJ12VPtU0
Made with <3 for https://gmclan.org