Example #1
0
        public GuitarProperties( AxeCalc app, CustomClass calculatedStuff )
        {
            // initialize the prefabs
            m_saddlePrefabs = new Dictionary<SaddleStyles, netDxf.DxfDocument>();
            foreach( SaddleStyles style in Enum.GetValues( typeof( SaddleStyles ) ) )
            {
                string strName = Enum.GetName( typeof( SaddleStyles ), style );
                try
                {
                    netDxf.DxfDocument dxf = new netDxf.DxfDocument();
                    dxf.Load( "Data/Saddles/" + strName + ".dxf" );
                    m_saddlePrefabs.Add( style, dxf );
                }
                catch
                {
                }
            }

            m_calculatedStuff = calculatedStuff;
            m_iStringCount = 6;
            m_iFretCount = 22;
            m_iStraightFret = 8;
            ScaleLength = "630";
            TotalBridgeStringSpacing = 51.85; // 52.5;
            TotalNutStringSpacing = 35.05; // 35.7;
            FretboardWidthAtNut = 43;
            FretboardWidthAt12th = 53;
            m_dFretwireWidth = 2.79;
            m_dFretwireCrownHeight = 1.32;
            m_bZeroFret = true;
            m_dZeroFretNutOffset = 8;
            m_dNutWidth = 5;
            m_dStringHeightAt12th = 3;
            m_dMinStringHeightAt12th = 1.5;
            m_dMaxStringHeightAt12th = 4;
            m_dDotRadius = 3;
            m_dDotEdgeSpacing = 6;
            m_eMarkerStyle = MarkerStyle.Centred;
            m_dSquareBlockSpacing = 3;
            m_dSquareBlockWidth = 30;
            SaddleStyle = SaddleStyles.Hardtail;
            m_bridgePickup.Type = PickupTypes.Humbucker;
            m_bridgePickup.m_dPosition = 43 / 630.0;
            m_neckPickup.Type = PickupTypes.Humbucker;
            m_neckPickup.m_dPosition = 148 / 630.0;

            /*
            fStratNeckPos = 6.375 / 25.5
            fStratMiddlePos = 3.875 / 25.5
            fStratBridgePos = 1.625 / 25.5
            fStratBridgeBassPos = 1.815 / 25.5
            fStratBridgeTreblePos = 1.435 / 25.5
            fJBNeckPos = 6 / 34.0
            fJBBridgePos = 2.13 / 34.0
            fPRSNeckPos = 148 / 635.0
            fPRSBridgePos = 43 / 635.0
             */
            // These are based on what D'Addario's Regular Light strings give on a 25.5" scale guitar
            m_dPlainSteelStringTensionTarget = 16;
            m_dNickelWoundStringTensionTarget = 18.5;

            m_tuning = new Tuning( this, m_calculatedStuff );

            Type t = typeof( GuitarProperties );

            //Add( new CustomProperty( this, m_iTestValue ) );
            AddMarkedUpVariables( this );

            Refresh( app );
        }