-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.py
More file actions
72 lines (61 loc) · 1.79 KB
/
Copy pathmodels.py
File metadata and controls
72 lines (61 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
from django.db import models
# Create your models here.
class Clip(models.Model):
"""
title:曲名
startingPos:数据起始位置
length:数据长度
timestamp:时间戳
src:数据源(fft)
tar:标签
"""
title = models.CharField(max_length=255)
startingPos = models.IntegerField()
length = models.IntegerField()
timestamp = models.DateTimeField(null=True)
src = models.BinaryField(null=True)
tar = models.BinaryField(null=True)
anote = models.CharField(max_length=255)
nfft = models.IntegerField()
class Tone(models.Model):
"""
pos:起始帧
lengh:长度
pitch:音高
note:十二平均律标注
tone:唱名 5-3 6+2 7 1+1 1-1
anote:指法注释 s2 f7h9 a6h7.94
"""
title = models.CharField(max_length=255)
pos = models.IntegerField()
length = models.IntegerField()
pitch = models.FloatField()
note = models.CharField(max_length=16)
tone = models.CharField(max_length=16)
anote = models.CharField(max_length=255)
class Wave(models.Model):
title = models.CharField(max_length=255)
waveFile = models.CharField(max_length=255)
frameNum = models.IntegerField()
# chin = models.BinaryField()
fs = models.IntegerField()
class Log(models.Model):
"""
target操作记录
title:与操作相关的曲目名称
content:记录内容
timestamp:时间戳
"""
title = models.CharField(max_length=255)
content = models.CharField(max_length=255)
timestamp = models.DateTimeField()
class MarkedPhrase(models.Model):
"""
需要关注的音乐片段
title:乐曲名称
mark:标注
"""
title = models.CharField(max_length=255)
mark = models.CharField(max_length=255)
start = models.FloatField()
length = models.FloatField()