Package: pocketrockit
POCKETROCKIT - A rocket in your pocket that rocks!Original project page:https://projects.om-office.de/frans/pocketrockit.gitWrite a music track in Python and play it while you write it (as you might know it fromSonic Pi, but written in Python (sonic.pywas not available on PyPi, though)).Write melodies, create rythm patterns, define endless simultaneously playing instruments, all in
a .. well .. simple Python syntax.Installation[<PYTHON>-m]pip[3]install[--upgrade]pocketrockitUsageWorkflow is not quite mature yet, so here is the short version for now.Create and enter a separate folder and provide required SoundFont files (configurable later,
hard-coded for now).Pocketrockt expects two SoundFont files:instrumental.sf2anddrums.sf2. You can download and
move/rename any file that works for you, and you can also just create symlinks (this is what I do).This is just an example:mkdirmytrackscdmytracks
ln-s/usr/share/soundfonts/FluidR3_GM.sf2instrumental.sf2
wgethttps://musical-artifacts.com/artifacts/2744/JV_1080_Drums.sf2
ln-sJV_1080_Drums.sf2drums.sf2The fileFluidR3_GM.sf2was shipped with FluidSynth for me, and I gotJV_1080_Drums.sf2fromhere.Create a filemyfirsttrack.pywith the following content:#!/usr/bin/env python3frompocketrockitimportEnv,midiseq,player,track@trackdefmy_first_track(env:Env):@playerdefmetronome():yield frommidiseq("x x x x",channel=128,note=37)@playerdefmelody1():yield frommidiseq("| .                .                 .                (II I)      ""| (II  VI<)        (IV< VI< . II<)   .                (II I)      ""| (II  VI<)        (IV< VI< . II<)   .                (II III)    ""| (IV  . III IV)   (. IV . II)       (III . II III)   (. III . I) ",key="A5",channel=13)Now - keeping the editor open for later use - execute this file. You can either make it executable
and run it directly or you runpython3instead:chmod+xmyfirsttrack.py
./myfirsttrack.py# orpython3myfirsttrack.pyDevelopment & Contributionpip3install-Upoetrypre-commit
gitclone--recurse-submoduleshttps://projects.om-office.de/frans/pocketrockit.gitcdpocketrockit
pre-commitinstall# if you need a specific version of Python inside your dev environmentpoetryenvuse~/.pyenv/versions/3.10.4/bin/python3
poetryinstallAfter modifications, this way a newly built wheel can be checked and installed:poetrybuild
poetryruntwinecheckdist/pocketrockit-0.0.25-py3-none-any.whl
python3-mpipinstall--user--upgradedist/pocketrockit-0.0.25-py3-none-any.whlStuff to read / SourcesSoundFontshttps://musescore.org/en/handbook/3/soundfonts-and-sfz-fileshttps://www.producersbuzz.com/category/downloads/download-free-soundfonts-sf2/https://archive.org/details/500-soundfonts-full-gm-setshttps://ia802502.us.archive.org/view_archive.php?archive=/27/items/500-soundfonts-full-gm-sets/500_Soundfonts_Full_GM_Sets.ziphttps://musical-artifacts.com/artifacts?formats=sf2&tags=soundfontflatpak install flathub com.polyphone_soundfonts.polyphone
flatpak run com.polyphone_soundfonts.polyphone instrumental.sf2Music stuffhttps://pianoscales.org/major.htmlhttps://www.inspiredacoustics.com/en/MIDI_note_numbers_and_center_frequencieshttps://onlinesequencer.net/181312https://github.com/Rainbow-Dreamerhttps://github.com/Rainbow-Dreamer/musicpy-dawhttps://sound.stackexchange.com/librosaPO-20 Arcade key signatures for chordsDrum patternsPocket Operations10 Popular Drum Patterns Every Producer Should KnowMaking Reggae & Dub music (2) Stepper beatDub Reggae Drum Beat Backing Track 150 bpmThe Basics Of Reggae DrummingTech stuffhttps://stackoverflow.com/questions/20023545/running-pyfluidsynth-pyaudio-demo-many-problems-with-alsa-and-jackhttps://www.ladspa.org/How can I record audio output from command line in Linux?Communicating between SuperCollider and Pythonhttps://pypi.org/project/sc3//https://github.com/smrg-lm/sc3https://pypi.org/project/supercollider/https://github.com/ideoforms/python-supercollidersupriyaTOMLNotationhttps://sneslab.net/wiki/Music_Macro_Languagehttps://objectcomputing.com/resources/publications/sett/january-2008-writing-music-in-java-two-approacheshttps://mascii.org/https://www.mobilefish.com/tutorials/rtttl/rtttl_quickguide_specification.htmlhttps://pypi.org/project/musicpy/KodouSimilar projectshttps://foxdot.org//https://github.com/Qirky/FoxDotTroubleshttps://stackoverflow.com/questions/47247814/pygame-midi-init-function-errorsMissing/usr/local/share/alsa/alsa.confALSA lib conf.c:4555:(snd_config_update_r) Cannot access file /usr/local/share/alsa/alsa.conf
ALSA lib seq.c:935:(snd_seq_open_noupdate) Unknown SEQ defaultsudo mkdir /usr/local/share/alsa
sudo ln -s /usr/share/alsa/alsa.conf /usr/local/share/alsa/alsa.conf