-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Count-in beats #45
Comments
Working on this, but I don't know any python. Trying to use the generateTitle block as a template for generateBeat. I stripped things down and was hoping this would run, but alas, it does not. Still working on it. #!/usr/bin/env python coding=utf-8import collections from PIL import Image, ImageDraw, ImageFont from pprint import pprint, pformat DEBUG = False # --debug sets to True def generateBeat1(beatText, width, height, ttfFile, fps, tempo):
generateBeat1 |
A hack of generate title to create beat 1 image. def generateTitle(titleText, width, height, ttfFile, fps, titleLength):
|
again, hacking the title font. my best though is to have ly2video pull the time signature to figure out how many beats to have. It would have to be able to recognize compound meters. It would also be good to have a manual override to multiple measures of count-in, as two beats for 2/2, 2/4, 6/8, etc would not be enough. I think I'm just going to get this working for 4/4 for myself and manually edit the file when I need more/ less beats. If someone could figure out how to cycle this process, inserting the appropriate beat into "beat" variable each time, it should do the trick. def generateTitle(titleText, width, height, ttfFile, fps, titleLength):
|
might be nice to have an option to make the last beat a different color as well (might be more hassle than its worth) |
This does the trick for generating the screens; now I need to create a call for it in the main function and cat it together. For now, I think I'll try to make some command line options rather than figure out how to pull data from the .ly file. def generateTitle(titleText, width, height, ttfFile, fps, titleLength):
|
Create frames displaying beat before music to count in with via something that creates number of frames
((60/tempo) * fps)
for each beat desired.The text was updated successfully, but these errors were encountered: