Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
leegee committed Jan 23, 2025
1 parent f092fd5 commit 784070e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MIDI Phase Rhythms UI
# MIDI Polytemporal Phase Rhythms UI

Schillinger's resultants in the studio web browser....

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "midi-phase-ui",
"description": "A React UI to experiment with real-time phasing of MIDI rhythms ala Schillinger",
"version": "0.1.0",
"description": "A React UI to experiment with real-time polytemporal phasing of MIDI rhythms ala Schillinger",
"version": "0.1.1",
"private": true,
"homepage": "https://leegee.github.io/midi-phase-ui-experiment",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions src/components/MergedGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import useMusicStore from '../store';
const GRID_PITCH_RANGE = 88;

const calculateOpacity = (velocity: number) => {
return velocity / 127; // Normalize velocity to opacity range [0, 1]
return velocity / 127;
};

const MergedGrid: React.FC = () => {
const gridRef = useRef<HTMLDivElement | null>(null);
// const gridRef = useRef<HTMLDivElement | null>(null);
const { grids, mergedBeats, mergeGrids } = useMusicStore();
const cellRefs = useRef<(HTMLDivElement | null)[][]>(
Array.from({ length: GRID_PITCH_RANGE }, () => Array(mergedBeats.length).fill(null))
Expand Down

0 comments on commit 784070e

Please sign in to comment.