+
@@ -91,6 +91,10 @@
this.line.sampleType = number;
console.log(number);
},
+ calculatePulseSize(i) {
+ var pulseSize = ((this.sampleLengths[i]/this.line.sequenceMilliseconds)*100) + "vw";
+ return pulseSize;
+ },
bjorklund: function (slots, pulses) {
var pattern = [],
@@ -258,6 +262,19 @@
display: none;
}
+
+/*extend button for preventing menu from disappearing accidentally on the edge*/
+.sampleType-wrapper::before {
+ content: "";
+ opacity: 0;
+ display: block;
+ width: 44px;
+ height: 10px;
+ position: absolute;
+ top: 0px;
+ left: 3px;
+ }
+
.sampleType-wrapper > .option-icon:not(:nth-child(1)){
display: none;
}
@@ -271,9 +288,9 @@
}
.sequencerLine{
- display:flex;
height:3em;
- width:100%;
+ /*width:100%;*/
+ display:flex;
background-color:firebrick;
}
diff --git a/pages/index.vue b/pages/index.vue
index c19bcc5..3b10099 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -47,7 +47,8 @@ export default {
euclideanList: [],
barOpacity:1,
sequenceMilliseconds:3600,
- sampleType:1
+ sampleType:1,
+ sampleLengths: [285, 110, 175, 560]
});
},
getSequencerData: function(){