I got a cool sound from linux defender or knoppix (or something else, I dont remember which one) that says "initiating start up sequence" And I want to use it as early as I can in the boot process. Having it say that when I login wouldnt make much sense, so having it play when GRUB starts would be best. Can it be done?
|
HowIn the file For instance: Once done, apply your changes with Existing tunes(The ones I could find)
More of them here. Understand a tuneThe syntax is:
Source: the grub documentation, the grub play command documentation (same page). Preview / test a tuneIf you want to test the tune: Install grub-playtune
To make it executable Use example:
Frequency of a noteA python3-based script to compute the frequency of a note: pitch
To make it executable Use examples:
Frequency tableOne is available here. It can also be generated, using the above script like so:
|
||||
|
|
|
According to the GRUB manual, the first note is a 'tempo', and each following pair of numbers are duration and pitch. The pitch is in Hz, so in order to play nice-sounding notes (which are in tune), you'll need the frequencies of notes in the western equal temperament scale: Incidentally, here's what I came up with after writing and using the Java code I pasted:
This plays an 4-note arpeggio of A, F#m, D, E. |
|||||||||||||
|
|
|||
|
|
|
You ask, Can it be done? The simple answer? Yes, apparently. How can it be done? You need to put more money in the slot for that answer. Just my little joke. The best that I can do is this: Go to section 5.1 Simple Configuration Handling and look for the line, GRUB_INIT_TUNE. You will need to follow the links to Play and File name syntax. You will have manually edit a Grub file. |
|||||
|