dpe1 commited on
Commit
d2720d9
·
verified ·
1 Parent(s): 89a4ca8

set default scale to 0.5, and fix final link

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -57,7 +57,7 @@ def BeatSwap(audiofile, pattern: str = 'test', scale:float = 1, shift:float = 0,
57
 
58
  audiofile=Audio(sources='upload', type='filepath')
59
  patternbox = Textbox(label="Pattern:", placeholder="1, 3, 2, 4!", value="1, 2>0.5, 3, 4>0.5, 5, 6>0.5, 3, 4>0.5, 7, 8", lines=1)
60
- scalebox = Textbox(value=1, label="Beatmap scale. At 2, every two beat positions will be merged, at 0.5 - a beat position added between every two existing ones. Note that sometimes you need to double or halve this value to get good results, when detected BPM is twice or half the actual BPM.", placeholder=1, lines=1)
61
  shiftbox = Textbox(value=0, label="Beatmap shift, in beats (applies before scaling):", placeholder=0, lines=1)
62
  beatdetectionbox = Checkbox(value=False, label='Enable support for variable BPM, however this makes beat detection slightly less accurate')
63
 
@@ -94,7 +94,7 @@ patterns are sequences of **beats**, separated by **commas** or other separators
94
  - `1, 2s0.5` - 2nd beat will be played at 0.5x speed
95
  - `1, 2d10` - 2nd beat will have 8-bit effect (downsampled)
96
 
97
- You can do much more with the syntax - shuffle/randomize beats, use samples, mix two songs, etc. Syntax is described in detail at https://github.com/stunlocked1/beat_manipulator
98
  ### scale
99
  `scale = 0.5` will insert a new beat position between every existing beat position in the beatmap. That allows you to make patterns on smaller intervals.
100
 
 
57
 
58
  audiofile=Audio(sources='upload', type='filepath')
59
  patternbox = Textbox(label="Pattern:", placeholder="1, 3, 2, 4!", value="1, 2>0.5, 3, 4>0.5, 5, 6>0.5, 3, 4>0.5, 7, 8", lines=1)
60
+ scalebox = Textbox(value=0.5, label="Beatmap scale. At 2, every two beat positions will be merged, at 0.5 - a beat position added between every two existing ones. Note that sometimes you need to double or halve this value to get good results, when detected BPM is twice or half the actual BPM.", placeholder=1, lines=1)
61
  shiftbox = Textbox(value=0, label="Beatmap shift, in beats (applies before scaling):", placeholder=0, lines=1)
62
  beatdetectionbox = Checkbox(value=False, label='Enable support for variable BPM, however this makes beat detection slightly less accurate')
63
 
 
94
  - `1, 2s0.5` - 2nd beat will be played at 0.5x speed
95
  - `1, 2d10` - 2nd beat will have 8-bit effect (downsampled)
96
 
97
+ You can do much more with the syntax - shuffle/randomize beats, use samples, mix two songs, etc. Syntax is described in detail at https://github.com/inikishev/beat-manipulator
98
  ### scale
99
  `scale = 0.5` will insert a new beat position between every existing beat position in the beatmap. That allows you to make patterns on smaller intervals.
100