Skip to content

Instantly share code, notes, and snippets.

View mfep's full-sized avatar

Lőrinc Serfőző mfep

View GitHub Profile
@mfep
mfep / Numark MixTrack Pro (mfep).midi.xml
Created August 24, 2023 18:35
Numark MixTrack Pro mapping for Mixxx
<?xml version='1.0' encoding='utf-8'?>
<MixxxControllerPreset schemaVersion="1" mixxxVersion="1.11.0+">
<info>
<name>Numark MixTrack Pro (mfep)</name>
<author>Matteo (matteo@magm3.com), James Ralston, and D. J. Freije (dario2004@gmail.com)</author>
<description>version v1.2 w/brake, backspin, blink beat Leds.</description>
<forums>https://mixxx.discourse.group/t/numark-mixtrack-pro-with-backspin-and-more/12557</forums>
</info>
<controller id="Numark">
<scriptfiles>
@mfep
mfep / RingBuffer.h
Created November 30, 2019 17:12
RingBuffer implementation with JUCE
#pragma once
#include "../JuceLibraryCode/JuceHeader.h"
class RingBuffer
{
public:
static constexpr int Channels = 2;
RingBuffer(int samples) :
_buffer(Channels, samples),
@mfep
mfep / fibonacci.pde
Created October 1, 2019 19:15
Modulated fibonacci sequence visualization in Processing
float turnFraction = (1 + sqrt(5))/2;
int numPoints = 3000;
void setup()
{
size(1000, 1000);
noStroke();
fill(255);
frameRate(30);
}
using System;
using Duality;
using Duality.Components.Physics;
using Duality.Components.Renderers;
using Duality.Drawing;
using Duality.Editor;
namespace mfep.Duality.Snippets
{
[RequiredComponent (typeof(SpriteRenderer))]
@mfep
mfep / spi.v
Created April 18, 2017 14:53
SPI input verilog
module counter(input clk, input rst, output reg [7:0] out);
always @ (posedge clk)
if (rst)
out <= 0;
else
out <= out + 1;
endmodule
module D_FF(input clk, input rst, input set, output reg D);
always @ (posedge clk)
@mfep
mfep / Controller2D.cs
Created August 30, 2016 22:10
character controller for Duality2D
using System;
using System.Collections.Generic;
using System.Linq;
using Duality;
using Duality.Components.Renderers;
using Duality.Components.Physics;
namespace TilemapJam
{