- based on small Digital Ocean VPS (1CPU / 1GB RAM) with Ubuntu 16.04
- SSH keys are recommended, but not described here
- (sub) domain name necessary for SSL certificate
Login as "root"
Please generate a JSON song using the following contract: | |
The song data should be an object with the following properties: | |
channel1: An array of numbers and strings representing the notes for the first channel. | |
channel2: An array of numbers and strings representing the notes for the second channel. | |
channel3: An array of numbers and strings representing the notes for the third channel. | |
channel4: An array of numbers and strings representing the notes for the fourth channel. | |
Each channel should have at least one note, and each note should be a positive integer representing the frequency in Hertz or a string that starts with the letter 'r' followed by a duration in milliseconds for pauses. The duration of each note/pause should be 250 milliseconds, except for pause notes, in which the duration should be the specified pause duration. |
""" | |
Temporary module to allow for sqlite databases during development. Remove once | |
we get an actual database. | |
""" | |
import peewee | |
from peewee_async import AsyncDatabase | |
import playhouse.sqlite_ext as sqlite_ext | |
try: | |
import aiosqlite |