Skip to content

Adding chants

Mark edited this page Sep 17, 2017 · 2 revisions

To add a new chant to the site:

Step 1:

  • Create a new html file under app/chanting/RELEVANT_DIRECTORY/NEW_CHANT.html

Step 2:

  • Use the boiler code found in CHANTING_BOILER.html TODO

Step 3:

  • Remove the audio file's metadata using ffmpeg: ffmpeg -i INPUT.mp3 -map 0:a -codec:a copy -map_metadata -1 OUTPUt.mp3

Step 4:

  • Convert the .mp3 file to .ogg by running: ffmpeg -i INPUT.mp3 -c:a libvorbis -q:a 4 OUTPUT.ogg

Step 5:

  • Add the .mp3 and .ogg files to the relevant app/asssets/audio/RELEVANT_DIRECTORY/AUDIO_FILE.mp3 or .ogg

Step 6:

  • Add the chant's text to the NEW_CHANT.html file you made in Step 1

  • For the chant's title use ### Chant Tilte (English OR Pali)

  • For the chant's origin use ##### <i>from the RELEVANT Monastery</i>

  • For subtitle's use #### SUBTITLE

  • To set the line's timing use: [00:00.0] RELEVANT LINE *Replace 00:00.0 with the correct timing in the audio file

  • Line's can use either .pali or .en

  • To set a line as .en, indent the text by AT LEAST 1 space

  • For reference: [00:02.0] (Yo so) bhagavā arahaṃ sammāsambuddho

Clone this wiki locally