GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — v0.3.1: fix SQPusher chopping · hexamorphical/hypercut@0046777

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • CHANGELOG.md
  • README.md
  • plugins/LiveCut
    • DistrhoPluginInfo.h
    • lib
      • BBCutter.cpp
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎CHANGELOG.md‎

Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## v0.3.1
4+
5+
- **SQPusher chopping fix.** The block length now matches the durations of the generated cuts
6+
(`temp * SubDiv / 8`, not the inverted `temp * 8 / SubDiv`) and fill segments advance by their
7+
real length. Higher subdivisions no longer re-arm the player on every grid unit — which used to
8+
cut off the pre-baked fills and leave only the first 16th note of each pattern audible. Empty
9+
slots in the original fill table are skipped instead of stalling on the previous cut.
10+
311
## v0.3
412

513
- **Freeze.** A snowflake tab centred on top of the LIVE CUTS visualiser arms Freeze; on the next bar line it records
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
</p>
1818

1919
<p align="center">
20-
<a href="https://github.com/hexamorphical/hypercut/releases/download/v0.3/HyperCut-0.3-windows-x64.zip"><img alt="Download for Windows" src="https://img.shields.io/badge/Download-Windows-2f81f7?style=for-the-badge"></a>
21-
<a href="https://github.com/hexamorphical/hypercut/releases/download/v0.3/HyperCut-0.3-macos-universal.zip"><img alt="Download for macOS" src="https://img.shields.io/badge/Download-macOS-8250df?style=for-the-badge"></a>
22-
<a href="https://github.com/hexamorphical/hypercut/releases/latest/download/HyperCut-linux-x86_64.zip"><img alt="Download for Linux" src="https://img.shields.io/badge/Download-Linux-e8a33d?style=for-the-badge"></a>
20+
<a href="https://github.com/hexamorphical/hypercut/releases/download/v0.3.1/HyperCut-0.3.1-windows-x64.zip"><img alt="Download for Windows" src="https://img.shields.io/badge/Download-Windows-2f81f7?style=for-the-badge"></a>
21+
<a href="https://github.com/hexamorphical/hypercut/releases/download/v0.3.1/HyperCut-0.3.1-macos-universal.zip"><img alt="Download for macOS" src="https://img.shields.io/badge/Download-macOS-8250df?style=for-the-badge"></a>
22+
<a href="https://github.com/hexamorphical/hypercut/releases/download/v0.3.1/HyperCut-0.3.1-linux-x86_64.zip"><img alt="Download for Linux" src="https://img.shields.io/badge/Download-Linux-e8a33d?style=for-the-badge"></a>
2323
</p>
2424

2525
![HyperCut](docs/images/screenshot.png)
Collapse file

‎plugins/LiveCut/DistrhoPluginInfo.h‎

Copy file name to clipboardExpand all lines: plugins/LiveCut/DistrhoPluginInfo.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
// Release shown in the UI header. Packaging derives the installer version from the git tag;
4848
// getVersion() stays at the original LiveCut ABI version for session compatibility.
49-
#define HYPERCUT_DISPLAY_VERSION "0.3"
49+
#define HYPERCUT_DISPLAY_VERSION "0.3.1"
5050

5151
#define DISTRHO_PLUGIN_IS_RT_SAFE 0
5252
#define DISTRHO_PLUGIN_NUM_INPUTS 2
Collapse file

‎plugins/LiveCut/lib/BBCutter.cpp‎

Copy file name to clipboardExpand all lines: plugins/LiveCut/lib/BBCutter.cpp
+15-2Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,12 @@ void SQPusherCutProc::ChooseCuts(std::vector<CutInfo> &cuts,
431431

432432
if(fill==true)
433433
{
434+
// Two pre-baked slots in the original table (cs[6][3], cs[8][2]) are empty. Skip them:
435+
// LivePlayer::OnBlock() ignores an empty list, which would keep replaying the previous cuts
436+
// while the scheduler moved on — exactly the kind of stuck 16th-note pattern being fixed.
437+
while(fillpos<cs[fillnumber].size() && cs[fillnumber][fillpos].empty())
438+
++fillpos;
439+
434440
if(fillpos<cs[fillnumber].size())
435441
{
436442
lastkind = kBlockFill;
@@ -450,7 +456,10 @@ void SQPusherCutProc::ChooseCuts(std::vector<CutInfo> &cuts,
450456
cuts[i].amp = Math::randomfloat(minamp,maxamp);
451457
cuts[i].cents = Math::randomfloat(mindetune,maxdetune);
452458
}
453-
unitsdone = long(double(subdiv)*beatsdone/4.0);
459+
// Beats in the fill segment -> grid units. unitsdone is passed by value, so advancing it
460+
// here has no effect on the caller; the block length is what tells BBCutter::Unit when to
461+
// choose the next segment of the pre-baked fill.
462+
unitsinblock = std::max(1L, long(double(subdiv)*beatsdone/4.0 + 0.5));
454463
if(unitsinblock>unitsleft)
455464
unitsinblock=unitsleft; //will automatically interrupt cutsequence before its end
456465
fillpos++;
@@ -468,7 +477,11 @@ void SQPusherCutProc::ChooseCuts(std::vector<CutInfo> &cuts,
468477
if(beatpos == 2)
469478
temp=1;
470479

471-
unitsinblock = long(double(temp*8.0)/double(subdiv));
480+
// temp quavers (or temp*2 semiquavers) last temp*0.5 beats, i.e. temp*subdiv/8 grid units.
481+
// The old temp*8/subdiv was inverted: at subdiv 8 it happened to be right, but above 8 it
482+
// shrank towards 0 (always 0 at 32), so BBCutter::Block re-armed the player on every unit
483+
// and only the first 16th of each freshly chosen pattern was ever heard.
484+
unitsinblock = std::max(1L, long(double(temp*subdiv)/8.0 + 0.5));
472485
if(unitsinblock>unitsleft)
473486
unitsinblock=unitsleft; //will automatically interrupt cutsequence before its end
474487

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.